(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1012],{60162:function(e,t,n){"use strict";n.d(t,{Jh:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return l},mG:function(){return s},pi:function(){return o}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{let t=typeof e;return"string"===t||"function"===t},s=e=>e.modelName||e.name,u=e=>"string"==typeof e?e:s(e);function l(e){return e?e.hasOwnProperty(o)?e[o]:s(e.constructor):"all"}function c(e,t,n){for(let r=n;re;class f{constructor(e,t,n=0){!function(e,t){if(Array.isArray(e.fields)&&!e.fields.length)throw Error("`rawRule.fields` cannot be an empty array. https://bit.ly/390miLa");if(e.fields&&!t.fieldMatcher)throw Error('You need to pass "fieldMatcher" option in order to restrict access by fields');if(e.conditions&&!t.conditionsMatcher)throw Error('You need to pass "conditionsMatcher" option in order to restrict access by conditions')}(e,t),this.action=t.resolveAction(e.action),this.subject=e.subject,this.inverted=!!e.inverted,this.conditions=e.conditions,this.reason=e.reason,this.fields=e.fields?i(e.fields):void 0,this.priority=n,this.t=t}i(){return this.conditions&&!this.o&&(this.o=this.t.conditionsMatcher(this.conditions)),this.o}get ast(){let e=this.i();return e?e.ast:void 0}matchesConditions(e){return!this.conditions||(!e||a(e)?!this.inverted:this.i()(e))}matchesField(e){return!this.fields||(e?(this.fields&&!this.u&&(this.u=this.t.fieldMatcher(this.fields)),this.u(e)):!this.inverted)}}let m=(e,t)=>{let n={value:e,prev:t,next:null};return t&&(t.next=n),n},g=e=>{e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next),e.next=e.prev=null},v=()=>({rules:[],merged:!1}),y=()=>new Map,b=(e,t)=>{!e.h&&t.fields&&(e.h=!0)};class w{constructor(e=[],t={}){this.h=!1,this.l=new Map,this.p={conditionsMatcher:t.conditionsMatcher,fieldMatcher:t.fieldMatcher,resolveAction:t.resolveAction||p},this.g=t.detectSubjectType||l,this.$=e,this.m=this.A(e)}get rules(){return this.$}detectSubjectType(e){return a(e)?e:this.g(e)}update(e){let t={rules:e,ability:this,target:this};return this.M("update",t),this.$=e,this.m=this.A(e),this.M("updated",t),this}A(e){let t=new Map;for(let n=e.length-1;n>=0;n--){let r=e.length-n-1,o=new f(e[n],this.p,r),a=i(o.action),s=i(o.subject||"all");b(this,o);for(let e=0;ee.matchesField(n)):r}on(e,t){let n=m(t,this.l.get(e)||null);return this.l.set(e,n),()=>{n.next||n.prev||this.l.get(e)!==n?g(n):this.l.delete(e)}}M(e,t){let n=this.l.get(e)||null;for(;null!==n;){let e=n.prev;n.value(t),n=e}}}class k extends w{can(...e){let t=this.relevantRuleFor(...e);return!!t&&!t.inverted}relevantRuleFor(e,t,n){let r=this.detectSubjectType(t),i=this.rulesFor(e,r,n);for(let e=0,n=i.length;e{let t;return n=>(void 0===t&&(t=e.every(e=>-1===e.indexOf("*"))?null:function(e){let t=e.map(e=>e.replace(E,T).replace(D,O)),n=t.length>1?`(?:${t.join("|")})`:t[0];return RegExp(`^${n}$`)}(e)),null===t?-1!==e.indexOf(n):t.test(n))};class P extends k{constructor(e=[],t={}){super(e,Object.assign({conditionsMatcher:S,fieldMatcher:A},t))}}class R{constructor(e){this.j=e}because(e){return this.j.reason=e,this}}class M{constructor(e){this.rules=[],this.v=e,this.can=this.can.bind(this),this.cannot=this.cannot.bind(this),this.build=this.build.bind(this)}can(e,t,n,r){let i={action:e};return t&&(i.subject=t,Array.isArray(n)||"string"==typeof n?i.fields=n:void 0!==n&&(i.conditions=n),void 0!==r&&(i.conditions=r)),this.rules.push(i),new R(i)}cannot(e,t,n,r){let i=this.can(e,t,n,r);return i.j.inverted=!0,i}build(e){return new this.v(this.rules,e)}}let F=e=>`Cannot execute "${e.action}" on "${e.subjectType}"`,N=function(e){this.message=e};N.prototype=Object.create(Error.prototype);class I extends N{static setDefaultMessage(e){this._="string"==typeof e?()=>e:e}static from(e){return new this(e)}constructor(e){super(""),this.ability=e,"function"==typeof Error.captureStackTrace&&(this.name="ForbiddenError",Error.captureStackTrace(this,this.constructor))}setMessage(e){return this.message=e,this}throwUnlessCan(...e){let t=this.ability.relevantRuleFor(...e);if(t&&!t.inverted)return;this.action=e[0],this.subject=e[1],this.subjectType=u(this.ability.detectSubjectType(e[1])),this.field=e[2];let n=t?t.reason:"";throw this.message=this.message||n||this.constructor._(this),this}}I._=F;var L=Object.freeze({__proto__:null});t.Ability=P,t.AbilityBuilder=M,t.ForbiddenError=I,t.PureAbility=k,t.buildMongoQueryMatcher=(e,t,n)=>r.createFactory(Object.assign({},x,e),Object.assign({},_,t),n),t.createAliasResolver=function(e){return t=>(function(e,t){let n=i(t),r=0;for(;rn.build(t)):n.build(t)},t.detectSubjectType=l,t.fieldPatternMatcher=A,t.getDefaultErrorMessage=F,t.hkt=L,t.mongoQueryMatcher=S,t.subject=function(e,t){if(t){if(t.hasOwnProperty(o)){if(e!==t[o])throw Error(`Trying to cast object to subject type ${e} but previously it was casted to ${t[o]}`)}else Object.defineProperty(t,o,{value:e})}return t},t.wrapArray=i},42795:function(e,t,n){"use strict";n.d(t,{fy:function(){return t1}});var r,i,o,a,s,u,l,c,d,h,p,f,m,g,v,y,b,w,k,x,_={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},S=console,E={};Object.keys(_).forEach(function(e){E[e]=S[e]});var D="Datadog Browser SDK:",C={debug:E.debug.bind(S,D),log:E.log.bind(S,D),info:E.info.bind(S,D),warn:E.warn.bind(S,D),error:E.error.bind(S,D)};function j(e,t){return function(){for(var n=[],r=0;r"}finally{r(),i(),o(),a()}}function X(e){var t=e.toJSON;return t?(delete e.toJSON,function(){e.toJSON=t}):K}function Q(e,t){return Object.keys(e).some(function(n){return e[n]===t})}function ee(e){return 0===Object.keys(e).length}function et(e){var t=0,n=Z(function(n){t=$(J(n)),e()},200),r=n.throttled,i=n.cancel,o=function(){i(),t=0};return{updateCustomerData:function(e){ee(e)?o():r(e)},resetCustomerData:o,getBytesCount:function(){return t},stop:function(){i()}}}function en(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function er(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;ot){es(t,"discarded",e);return}for(;o.length>0&&ut){es(t,"truncated",e);break}l.target[d]=h}else for(var d in l.source)if(Object.prototype.hasOwnProperty.call(l.source,d)){var h=ea(l.source[d],l.path,d,o,a);if(void 0!==h&&(u+=JSON.stringify(h).length+c+d.length+3,c=1),u>t){es(t,"truncated",e);break}l.target[d]=h}}return r(),i(),s}function ea(e,t,n,r,i){var o=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!o||"object"!=typeof o)return"bigint"==typeof o?"[BigInt] ".concat(o.toString()):"function"==typeof o?"[Function] ".concat(o.name||"unknown"):"symbol"==typeof o?"[Symbol] ".concat(o.description||o.toString()):o;var a=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(i.has(e))return"[Reference seen at ".concat(i.get(e),"]");var s=void 0!==n?"".concat(t,".").concat(n):t,u=Array.isArray(o)?[]:{};return i.set(e,s),r.push({source:o,target:u,path:s}),u}function es(e,t,n){C.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var eu=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function el(){for(var e=[],t=0;t eval")>-1,r=e_.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}}(e);n&&(!n.func&&n.line&&(n.func="?"),t.push(n))}),{message:eS(e,"message"),name:eS(e,"name"),stack:t}}var eg="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet||\\w+\\.|\\/).*?)",ev="(?::(\\d+))",ey=RegExp("^\\s*at (.*?) ?\\(".concat(eg).concat(ev,"?").concat(ev,"?\\)?\\s*$"),"i"),eb=new RegExp("\\((\\S*)".concat(ev).concat(ev,"\\)")),ew=RegExp("^\\s*at ?".concat(eg).concat(ev,"?").concat(ev,"??\\s*$"),"i"),ek=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ex=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,e_=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function eS(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var eE=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,eD="No stack, consider using an instance of Error";function eC(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,i=e.startClocks,o=e.nonErrorPrefix,a=e.source,s=e.handling,u=n instanceof Error,l=(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:u?"Empty message":"".concat(o," ").concat(J(eo(n))),c=void 0!==t&&(u||t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url))?eO(t):eD,d=u?eA(n,a):void 0,h=null==t?void 0:t.name,p=ej(n);return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:h,message:l,stack:c,causes:d,fingerprint:p}}function ej(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function eO(e){var t=eT(e);return e.stack.forEach(function(e){var n="?"===e.func?"":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",i=e.line?":".concat(e.line):"",o=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(i).concat(o)}),t}function eT(e){return"".concat(e.name||"Error",": ").concat(e.message)}function eA(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=em(n.cause);r.push({message:n.cause.message,source:t,type:null==i?void 0:i.name,stack:i&&eO(i)}),n=n.cause}return r.length?r:void 0}(i=c||(c={})).PAGEHIDE="pagehide",i.FEATURE_FLAGS="feature_flags",i.RESOURCE_PAGE_STATES="resource_page_states",i.COLLECT_FLUSH_REASON="collect_flush_reason",i.ZERO_LCP_TELEMETRY="zero_lcp_telemetry",i.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",i.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",i.CUSTOM_VITALS="custom_vitals",i.TOLERANT_RESOURCE_TIMINGS="tolerant_resource_timings";var eP=new Set,eR="datadoghq.com",eM="pci.browser-intake-datadoghq.com";function eF(){return new Date().getTime()}function eN(){return performance.now()}function eI(){return{relative:eN(),timeStamp:eF()}}function eL(){return void 0===d&&(d=performance.timing.navigationStart),d}function eB(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function ez(e){return 0!==e&&100*Math.random()<=e}function eU(e){return"number"==typeof e&&e>=0&&e<=100}var eq="configuration",e$="usage",eH=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost",""],eW=["ddog-gov.com"],eV={maxEventsPerPage:0,sentEventCount:0};function eG(e,t){F(_.debug,e,t),eZ(z({type:"log",message:e,status:"debug"},t))}function eY(e,t){eZ(z({type:"log",status:"error"},function(e){if(e instanceof Error){var t=em(e);return{error:{kind:t.name,stack:eO((t.stack=t.stack.filter(function(e){return!e.url||eH.some(function(t){return B(e.url,t)})}),t))},message:t.message}}return{error:{stack:eD},message:"".concat("Uncaught"," ").concat(J(e))}}(e),t))}function eZ(e){h&&eV.sentEventCount=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},e0={debug:"debug",error:"error",info:"info",warn:"warn"},e1={console:"console",http:"http"},e2=Object.keys(e0),e3=function(){function e(e,t,n,r,i,o){void 0===r&&(r=e1.http),void 0===i&&(i=e0.debug),void 0===o&&(o={}),this.handleLogStrategy=e,this.handlerType=r,this.level=i,this.contextManager=ec(t),this.contextManager.setContext(o),n&&this.contextManager.setContextProperty("logger",{name:n})}return e.prototype.log=function(e,t,n,r){if(void 0===n&&(n=e0.info),null!=r){var i,o=eC({stackTrace:r instanceof Error?em(r):void 0,originalError:r,nonErrorPrefix:"Provided",source:eX.LOGGER,handling:"handled",startClocks:eI()});i={stack:o.stack,kind:o.type,message:o.message,causes:o.causes}}var a=eo(t),s=i?ei({error:i},a):a;this.handleLogStrategy({message:eo(e),context:s,status:n},this)},e.prototype.debug=function(e,t,n){this.log(e,t,e0.debug,n)},e.prototype.info=function(e,t,n){this.log(e,t,e0.info,n)},e.prototype.warn=function(e,t,n){this.log(e,t,e0.warn,n)},e.prototype.error=function(e,t,n){this.log(e,t,e0.error,n)},e.prototype.setContext=function(e){this.contextManager.setContext(e)},e.prototype.getContext=function(){return this.contextManager.getContext()},e.prototype.setContextProperty=function(e,t){this.contextManager.setContextProperty(e,t)},e.prototype.removeContextProperty=function(e){this.contextManager.removeContextProperty(e)},e.prototype.clearContext=function(){this.contextManager.clearContext()},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.getHandler=function(){return this.handlerType},e.prototype.setLevel=function(e){this.level=e},e.prototype.getLevel=function(){return this.level},eQ([P],e.prototype,"log",null),e}();function e5(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var e4=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.remove=function(e){e5(this.buffer,e)},e.prototype.drain=function(e){this.buffer.forEach(function(t){return t(e)}),this.buffer.length=0},e}();function e6(){var e=U().DatadogEventBridge;if(e)return{getCapabilities:function(){var t;return JSON.parse((null===(t=e.getCapabilities)||void 0===t?void 0:t.call(e))||"[]")},getPrivacyLevel:function(){var t;return null===(t=e.getPrivacyLevel)||void 0===t?void 0:t.call(e)},getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n,r){e.send(JSON.stringify({eventType:t,event:n,view:r?{id:r}:void 0}))}}}function e8(e){void 0===e&&(e=null===(t=U().location)||void 0===t?void 0:t.hostname);var t,n=e6();return!!n&&n.getAllowedWebViewHosts().some(function(t){var n,r;return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r)})}function e9(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,e9)}var e7=/([\w-]+)\s*=\s*([^;]+)/g;function te(e,t,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",u=r&&r.secure?";secure":"",l=r&&r.partitioned?";partitioned":"";document.cookie="".concat(e,"=").concat(t,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(u).concat(l)}function tt(e){return function(e,t){for(e7.lastIndex=0;;){var n=e7.exec(e);if(n){if(n[1]===t)return n[2]}else break}}(document.cookie,e)}function tn(e){return f||(f=function(e){var t=new Map;for(e7.lastIndex=0;;){var n=e7.exec(e);if(n)t.set(n[1],n[2]);else break}return t}(document.cookie)),f.get(e)}function tr(e,t){te(e,"",0,t)}var ti="_dd_s",to=/^([a-z]+)=([a-z0-9-]+)$/;function ta(e){e.expire=String(eF()+9e5)}function ts(e){return Object.keys(e).map(function(t){return[t,e[t]]}).map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)}).join("&")}function tu(e){var t={};return e&&(-1!==e.indexOf("&")||to.test(e))&&e.split("&").forEach(function(e){var n=to.exec(e);if(null!==n){var r=n[1],i=n[2];t[r]=i}}),t}function tl(){return tu(tt(ti))}function tc(e){localStorage.setItem(ti,ts(e))}function td(){return tu(localStorage.getItem(ti))}function th(){localStorage.removeItem(ti)}var tp=[];function tf(e,t,n){void 0===n&&(n=0);var r,i,o=t.isLockEnabled,a=t.retrieveSession,s=t.persistSession,u=t.clearSession;if(g||(g=e),e!==g){tp.push(e);return}if(o&&n>=100){tg(t);return}var l=a();if(o&&(l.lock||(i=e9(),l.lock=i,s(l),(l=a()).lock!==i))){tm(e,t,n);return}var c=e.process(l);if(o&&(l=a()).lock!==i){tm(e,t,n);return}if(c&&(ee(c)?u():(ta(c),s(c))),o&&!(c&&ee(c))){if((l=a()).lock!==i){tm(e,t,n);return}delete l.lock,s(l),c=l}null===(r=e.after)||void 0===r||r.call(e,c||l),tg(t)}function tm(e,t,n){W(function(){tf(e,t,n+1)},10)}function tg(e){g=void 0;var t=tp.shift();t&&tf(t,e)}function tv(e){return function(e,t){var n=function(){if(void 0===v)try{var e=new ty("http://test/path");v="http://test/path"===e.href}catch(e){v=!1}return v?ty:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw Error("Failed to construct URL: ".concat(String(n)," ").concat(J({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '".concat(e,"'"));var r=document,i=r.createElement("a");if(void 0!==t){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=t,r.head.appendChild(o),r.body.appendChild(i)}return i.href=e,i}(e,location.href).href}var ty=URL;function tb(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var i=tv(r);return function(e){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var o=function(e,t){var n=t.site,r=void 0===n?eR:n,i=t.internalAnalyticsSubdomain;if("logs"===e&&t.usePciIntake&&r===eR)return eM;if(i&&r===eR)return"".concat(i,".").concat(eR);if("dd0g-gov.com"===r)return"http-intake.logs.".concat(r);var o=r.split("."),a=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(a)}(t,e);return function(e){return"https://".concat(o).concat(n,"?").concat(e)}}(e,t);return{build:function(i,o){var a,s,u,l,d,h,p,f;return r((s=e.clientToken,u=e.internalAnalyticsSubdomain,l=o.retry,d=o.flushReason,h=o.encoding,p=["sdk_version:".concat("5.16.0"),"api:".concat(i)].concat(n),d&&(a=c.COLLECT_FLUSH_REASON,eP.has(a))&&p.push("flush_reason:".concat(d)),l&&p.push("retry_count:".concat(l.count),"retry_after:".concat(l.lastFailureStatus)),f=["ddsource=browser","ddtags=".concat(encodeURIComponent(p.join(","))),"dd-api-key=".concat(s),"dd-evp-origin-version=".concat(encodeURIComponent("5.16.0")),"dd-evp-origin=browser","dd-request-id=".concat(e9())],h&&f.push("dd-evp-encoding=".concat(h)),"rum"===t&&f.push("batch_time=".concat(eF())),u&&f.reverse(),f.join("&")))},urlPrefix:r(""),trackType:t}}var tw=/[^a-z0-9_:./-]/;function tk(e,t){var n=200-e.length-1;(t.length>n||tw.test(t))&&C.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}var tx={intervention:"intervention",deprecation:"deprecation",cspViolation:"csp_violation"};function t_(e,t,n,r,i){return n?eO({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function tS(e,t,n){var r;if(void 0===e)return[];if(!("all"===e||Array.isArray(e)&&e.every(function(e){return N(t,e)}))){C.error("".concat(n,' should be "all" or an array with allowed values "').concat(t.join('", "'),'"'));return}return"all"===e?t:(r=new Set,e.forEach(function(e){return r.add(e)}),I(r))}var tE="logs",tD={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function tC(){return!!(window._DATADOG_SYNTHETICS_INJECTS_RUM||tn("datadog-synthetics-injects-rum"))}var tj=1/0,tO=function(){function e(e,t){var n=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=G(function(){return n.clearOldValues()},6e4)}return e.prototype.add=function(e,t){var n=this,r={value:e,startTime:t,endTime:tj,remove:function(){e5(n.entries,r)},close:function(e){r.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=tj);for(var t=0,n=this.entries;t0&&this.entries[this.entries.length-1].endTimet.requestErrorResponseLengthLimit?"".concat(e.substring(0,t.requestErrorResponseLengthLimit),"..."):e}var tq=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];n&&n.forEach(function(e){return e(t)})},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter(function(e){return t!==e})}}},e}(),t$=((x={})[e0.debug]=0,x[e0.info]=1,x[e0.warn]=2,x[e0.error]=3,x);function tH(e,t,n){var r=n.getHandler(),i=Array.isArray(r)?r:[r];return t$[e]>=t$[n.getLevel()]&&N(i,t)}var tW=function(){function e(e,t,n,r){var i=this;this.encoder=e,this.request=t,this.flushController=n,this.messageBytesLimit=r,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(e){return i.flush(e)})}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.stop=function(){this.flushSubscription.unsubscribe()},e.prototype.flush=function(e){var t,n=L(this.upsertBuffer).join("\n");this.upsertBuffer={};var r=(t=e.reason,N(L(tD),t)),i=r?this.request.sendOnExit:this.request.send;if(r&&this.encoder.isAsync){var o=this.encoder.finishSync();o.outputBytesCount&&i(tV(o,e));var a=[o.pendingData,n].filter(Boolean).join("\n");a&&i({data:a,bytesCount:$(a),flushReason:e.reason})}else n&&this.encoder.write(this.encoder.isEmpty?n:"\n".concat(n)),this.encoder.finish(function(t){i(tV(t,e))})},e.prototype.addOrUpdate=function(e,t){var n=J(e),r=this.encoder.estimateEncodedBytesCount(n);if(r>=this.messageBytesLimit){C.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB."));return}this.hasMessageFor(t)&&this.remove(t),this.push(n,r,t)},e.prototype.push=function(e,t,n){var r=this;this.flushController.notifyBeforeAddMessage(t),void 0!==n?(this.upsertBuffer[n]=e,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e),function(e){r.flushController.notifyAfterAddMessage(e-t)})},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=this.encoder.estimateEncodedBytesCount(t);this.flushController.notifyAfterRemoveMessage(n)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function tV(e,t){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding,flushReason:t.reason}}function tG(e,t,n,r,i){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?tY(e,t,n,{onSuccess:function(){return tZ(0,t,n,r,i)},onFailure:function(){t.queuedPayloads.enqueue(e),function e(t,n,r,i){2===t.transportStatus&&W(function(){tY(t.queuedPayloads.first(),t,n,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=1e3,tZ(1,t,n,r,i)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),e(t,n,r,i)}})},t.currentBackoffTime)}(t,n,r,i)}}):t.queuedPayloads.enqueue(e)}function tY(e,t,n,r){var i=r.onSuccess,o=r.onFailure;t.bandwidthMonitor.add(e),n(e,function(n){t.bandwidthMonitor.remove(e),"opaque"!==n.type&&(0===n.status&&!navigator.onLine||408===n.status||429===n.status||n.status>=500)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},o()):(t.transportStatus=0,i())})}function tZ(e,t,n,r,i){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:eX.AGENT,startClocks:eI()}),t.queueFullReported=!0);var o=t.queuedPayloads;for(t.queuedPayloads=tK();o.size()>0;)tG(o.dequeue(),t,n,r,i)}function tK(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=3145728}}}var tJ=!1;function tX(e,t,n,r){var i=new XMLHttpRequest;i.open("POST",t,!0),n instanceof Blob&&i.setRequestHeader("Content-Type",n.type),eh(e,i,["loadend"],function(){null==r||r({status:i.status})},{once:!0}),i.send(n)}function tQ(e,t,n,r,i,o){var a=u(e,t),s=n&&u(e,n);function u(e,t){var n,a,s,u=t.endpoint;return new tW(t.encoder,(n=e.batchBytesLimit,a={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:tK(),queueFullReported:!1},s=function(t,r){(function(){try{return window.Request&&"keepalive"in new Request("http://a")}catch(e){return!1}})()&&t.bytesCount=r&&h("bytes_limit"),d+=1,c+=e,void 0===t&&(t=W(function(){h("duration_limit")},i))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),c+=e,d>=n?h("messages_limit"):c>=r&&h("bytes_limit")},notifyAfterRemoveMessage:function(e){c-=e,0==(d-=1)&&p()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),e.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),a.add(e),s&&t&&s.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){a.upsert(e,t),s&&s.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){a.stop(),null==s||s.stop()}}}function t0(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var i=$(n);t+=i,e+=n,r&&r(i)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}var t1=function(e){var t,n,r,i=function(e){void 0===e&&(e=2);var t=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==e){var i=2===e?3072:16384,o=r;t.forEach(function(e){o+=e.getBytesCount()}),o>i&&(C.warn("Customer data exceeds the recommended ".concat(i/1024,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning")),n=!0)}}return{createDetachedTracker:function(){var e=et(function(){return r(e.getBytesCount())});return e},getOrCreateTracker:function(e){return t.has(e)||t.set(e,et(r)),t.get(e)},setCompressionStatus:function(t){0===e&&(e=t,r())},getCompressionStatus:function(){return e},stop:function(){t.forEach(function(e){return e.stop()}),t.clear()}}}(),o=ec(i.getOrCreateTracker(2)),a=ec(i.getOrCreateTracker(1)),s={tryToInit:function(e){t||(t=e)},update:function(e){t=e,n.notify()},isGranted:function(){return t===ed.GRANTED},observable:n=new eu};function u(){return{view:{referrer:document.referrer,url:window.location.href},context:o.getContext(),user:a.getContext()}}var l=function(e,t,n){var r,i,o=new e4,a=t.observable.subscribe(s);function s(){if(i&&r&&t.isGranted()){a.unsubscribe();var e=n(r,i);o.drain(e)}}return{init:function(e){if(!e){C.error("Missing configuration");return}if(e8()&&(e=z({},e,{clientToken:"empty"})),r=e,i){eJ("DD_LOGS",e);return}var n=function(e){!0===e.usePciIntake&&e.site&&"datadoghq.com"!==e.site&&C.warn("PCI compliance for Logs is only available for Datadog organizations in the US1 site. Default intake will be used.");var t=function(e){var t,n,r,i,o,a,s,u,l,d,h,p,f,g,v,y;if(!e||!e.clientToken){C.error("Client Token is not configured, we will not send any data.");return}if(void 0!==e.sessionSampleRate&&!eU(e.sessionSampleRate)){C.error("Session Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetrySampleRate&&!eU(e.telemetrySampleRate)){C.error("Telemetry Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetryConfigurationSampleRate&&!eU(e.telemetryConfigurationSampleRate)){C.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");return}if(void 0!==e.telemetryUsageSampleRate&&!eU(e.telemetryUsageSampleRate)){C.error("Telemetry Usage Sample Rate should be a number between 0 and 100");return}if(void 0!==e.trackingConsent&&!Q(ed,e.trackingConsent)){C.error('Tracking Consent should be either "granted" or "not-granted"');return}return Array.isArray(e.enableExperimentalFeatures)&&function(e){e.forEach(function(e){eP.add(e)})}(e.enableExperimentalFeatures.filter(function(e){return Q(c,e)})),z({beforeSend:e.beforeSend&&j(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:((v=!function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(e9()),n="test";te(t,n,6e4,e);var r=tt(t)===n;return tr(t,e),r}catch(e){return C.error(e),!1}}(((g={}).secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,g.crossSite=!!e.usePartitionedCrossSiteSessionCookie||!!e.useCrossSiteSessionCookie,g.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(g.domain=function(){if(void 0===m){for(var e="dd_site_test_".concat(e9()),t=window.location.hostname.split("."),n=t.pop();t.length&&!tt(e);)te(e,"test",1e3,{domain:n="".concat(t.pop(),".").concat(n)});tr(e,{domain:n}),m=n}return m}()),g))?void 0:{type:"Cookie",cookieOptions:g})||!e.allowFallbackToLocalStorage||(v=function(){try{var e=e9(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),v),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,telemetryUsageSampleRate:null!==(i=e.telemetryUsageSampleRate)&&void 0!==i?i:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!==(o=e.trackingConsent)&&void 0!==o?o:ed.GRANTED,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},(a=e.site||eR,s=e.env,u=e.service,l=e.version,d=e.datacenter,h=[],s&&h.push(tk("env",s)),u&&h.push(tk("service",u)),l&&h.push(tk("version",l)),d&&h.push(tk("datacenter",d)),y=L(p={logsEndpointBuilder:tb(e,"logs",h),rumEndpointBuilder:tb(e,"rum",h),sessionReplayEndpointBuilder:tb(e,"replay",h)}).map(function(e){return e.urlPrefix}),a===eR&&y.push("https://".concat(eM,"/")),z({isIntakeUrl:function(e){return f.some(function(t){return 0===e.indexOf(t)})},replica:function(e,t,n){if(e.replica){var r=z({},e,{site:eR,clientToken:e.replica.clientToken}),i={logsEndpointBuilder:tb(r,"logs",n),rumEndpointBuilder:tb(r,"rum",n)};return t.push.apply(t,L(i).map(function(e){return e.urlPrefix})),z({applicationId:e.replica.applicationId},i)}}(e,f=y,h),site:a},p)))}(e),n=tS(e.forwardConsoleLogs,L(_),"Forward Console Logs"),r=tS(e.forwardReports,L(tx),"Forward Reports");if(t&&n&&r)return e.forwardErrorsToLogs&&!N(n,_.error)&&n.push(_.error),z({forwardErrorsToLogs:!1!==e.forwardErrorsToLogs,forwardConsoleLogs:n,forwardReports:r,requestErrorResponseLengthLimit:32768},t)}(e);n&&(i=n,t.tryToInit(n.trackingConsent),s())},get initConfiguration(){return r},getInternalContext:K,handleLog:function(t,n,r,i){void 0===r&&(r=e()),void 0===i&&(i=eF()),o.add(function(e){return e.handleLog(t,n,r,i)})}}}(u,s,function(t,n){t.storeContextsAcrossPages&&(ef(n,o,tE,2),ef(n,a,tE,1));var r=e(t,n,u,s);return l=z({init:function(e){eJ("DD_LOGS",e)},initConfiguration:t},r),r}),d={};return Object.defineProperty(r=z({version:"5.16.0",onReady:function(e){e()}},{logger:new e3(function(){for(var e=[],t=0;t=500)&&("xhr"in r?d("string"==typeof(i=r.xhr).response?tU(i.response,e):i.response):r.response?(o=r.response,a=d,(s=function(e){try{return e.clone()}catch(e){return}}(o))&&s.body?window.TextDecoder?(u=s.body,l=e.requestErrorResponseLengthLimit,c=function(e,t){e?a("Unable to retrieve response: ".concat(e)):a(t)},function(e,t,n){var r=e.getReader(),i=[],o=0;function a(){if(r.cancel().catch(K),n.collectStreamBody){if(1===i.length)s=i[0];else{s=new Uint8Array(o);var e,a,s,u=0;i.forEach(function(e){s.set(e,u),u+=e.length})}e=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}t(void 0,e,a)}(function e(){r.read().then(R(function(t){if(t.done){a();return}n.collectStreamBody&&i.push(t.value),(o+=t.value.length)>n.bytesLimit?a():e()}),R(function(e){return t(e)}))})()}(u,function(e,t,n){if(e)c(e);else{var r=new TextDecoder().decode(t);n&&(r+="..."),c(void 0,r)}},{bytesLimit:l,collectStreamBody:!0})):s.text().then(R(function(t){return a(tU(t,e))}),R(function(e){return a("Unable to retrieve response: ".concat(e))})):a()):r.error&&d(tU(eO(em(r.error)),e)))}e.forwardErrorsToLogs&&((w||(w=new eu(function(t){var n=tI(XMLHttpRequest.prototype,"open",tB).stop,r=tI(XMLHttpRequest.prototype,"send",function(n){(function(e,t,n){var r=e.target,i=tL.get(r);if(i){i.state="start",i.startClocks=eI(),i.isAborted=!1,i.xhr=r;var o=!1,a=tI(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&s()}).stop,s=function(){var e;u(),a(),o||(o=!0,i.state="complete",i.duration=(e=i.startClocks.timeStamp,eF()-e),i.status=r.status,n.notify(z({},i)))},u=eh(t,r,["loadend"],s,void 0).stop;n.notify(i)}})(n,e,t)}).stop,i=tI(XMLHttpRequest.prototype,"abort",tz).stop;return function(){n(),r(),i()}})),w).subscribe(function(e){"complete"===e.state&&n("xhr",e)}),(k||(k=new eu(function(e){if(window.fetch)return tI(window,"fetch",function(t){var n,r,i,o,a,s,u,l;return n=t.parameters,r=t.onPostCall,i=n[0],void 0===(a=(o=n[1])&&o.method)&&i instanceof Request&&(a=i.method),s=void 0!==a?String(a).toUpperCase():"GET",u=i instanceof Request?i.url:tv(String(i)),l={state:"start",init:o,input:i,method:s,startClocks:eI(),url:u},void(e.notify(l),n[0]=l.input,n[1]=l.init,r(function(t){return function(e,t,n){var r=function(t){n.state="resolve","stack"in t||t instanceof Error?(n.status=0,n.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,n.error=t):"status"in t&&(n.response=t,n.responseType=t.type,n.status=t.status,n.isAborted=!1),e.notify(n)};t.then(R(r),R(r))}(e,t,l)}))}).stop})),k).subscribe(function(e){"resolve"===e.state&&n("fetch",e)}))}(t,i),function(e,t){if(e.forwardErrorsToLogs){var n,r,i,o,a=new eu;(i=(n=r=function(e,t){var n=eC({stackTrace:e,originalError:t,startClocks:eI(),nonErrorPrefix:"Uncaught",source:eX.SOURCE,handling:"unhandled"});a.notify(n)},tI(window,"onerror",function(e){var t,r,i,o,a,s=e.parameters,u=s[0],l=s[1],c=s[2],d=s[3],h=s[4];n(a=h instanceof Error?em(h):{name:("[object String]"===({}).toString.call(u)&&(r=(t=eE.exec(u))[1],i=t[2]),o={name:r,message:i}).name,message:o.message,stack:[{url:l,column:d,line:c}]},null!=h?h:u)})).stop,o=tI(window,"onunhandledrejection",function(e){var t=e.parameters[0].reason||"Empty reason";r(em(t),t)}).stop,{stop:function(){i(),o()}}).stop,a.subscribe(function(e){t.notify(0,{rawLogsEvent:{message:e.message,date:e.startClocks.timeStamp,error:{kind:e.type,stack:e.stack,causes:e.causes},origin:eX.SOURCE,status:e0.error}})})}}(t,i),function(e,t){var n;(n=e.forwardConsoleLogs.map(function(e){return tM[e]||(tM[e]=new eu(function(t){var n=S[e];return S[e]=function(){for(var r=[],i=0;i=55296&&i<=56319?101:100,r.length<=o?r:"".concat(r.slice(0,o)).concat("...")),'"'):"no policy",n.sourceFile,n.lineNumber,n.columnNumber),originalReport:n}))},void 0).stop})),(b=v.filter(function(e){return e!==tx.cspViolation})).length&&y.push(new eu(function(e){if(window.ReportingObserver){var t=R(function(t,n){return t.forEach(function(t){var n,r;e.notify({type:n=t.type,subtype:(r=t.body).id,message:"".concat(n,": ").concat(r.message),originalReport:t,stack:t_(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})})}),n=new window.ReportingObserver(t,{types:b,buffered:!0});return n.observe(),function(){n.disconnect()}}})),el.apply(void 0,y)).subscribe(function(e){var t,n,r,o=e.message,a=tN[e.type];a===e0.error?r={kind:e.subtype,stack:e.stack}:e.stack&&(o+=" Found in ".concat((t=e.stack,null===(n=/@ (.+)/.exec(t))||void 0===n?void 0:n[1]))),i.notify(0,{rawLogsEvent:{date:eF(),message:o,origin:eX.REPORT,error:r,status:a}})}),x=e2.concat(["custom"]),D={},x.forEach(function(e){var n,r,i;D[e]=(n=t.eventRateLimiterThreshold,r=0,i=!1,{isLimitReached:function(){if(0===r&&W(function(){r=0},6e4),(r+=1)<=n||i)return i=!1,!1;if(r===n+1){i=!0;try{a({message:"Reached max number of ".concat(e,"s by minute: ").concat(n),source:eX.AGENT,startClocks:eI()})}finally{i=!1}}return!0}})}),i.subscribe(0,function(e){var r,o,a=e.rawLogsEvent,s=e.messageContext,u=e.savedCommonContext,l=e.domainContext,c=a.date-eL(),h=d.findTrackedSession(c);if(h){var p=(void 0===u?void 0:u)||n(),f=ei({service:t.service,session_id:h.id,usr:ee(p.user)?void 0:p.user,view:p.view},p.context,tR(c),a,void 0===s?void 0:s);(null===(r=t.beforeSend)||void 0===r?void 0:r.call(t,f,l))===!1||f.origin!==eX.AGENT&&(null!==(o=D[f.status])&&void 0!==o?o:D.custom).isLimitReached()||i.notify(1,f)}}),e8())!function(e){var t=e6();e.subscribe(1,function(e){t.send("log",e)})}(i);else{var m,g,v,y,b,x,D,C,j=(C=tQ(t,{endpoint:t.logsEndpointBuilder,encoder:t0()},t.replica&&{endpoint:t.replica.logsEndpointBuilder,encoder:t0()},a,s,d.expireObservable),i.subscribe(1,function(e){C.add(e)}),C).stop;o.push(function(){return j()})}return{handleLog:function(e,t,n,r){var o=ei(t.getContext(),e.context);tH(e.status,e1.console,t)&&function(e,t){E[e.status].call(S,e.message,t)}(e,o),tH(e.status,e1.http,t)&&i.notify(0,{rawLogsEvent:{date:r||eF(),message:e.message,status:e.status,origin:eX.LOGGER},messageContext:o,savedCommonContext:n})},getInternalContext:function(e){var t=d.findTrackedSession(e);if(t)return{session_id:t.id}},stop:function(){o.forEach(function(e){return e()})}}});s=(o=U())[a="DD_LOGS"],o[a]=t1,s&&s.q&&s.q.forEach(function(e){return j(e,"onReady callback threw an error:")()})},90824:function(e,t,n){"use strict";n.d(t,{AA:function(){return O},AK:function(){return d},F1:function(){return A},HD:function(){return m},IV:function(){return U},Kn:function(){return p},Le:function(){return k},P2:function(){return I},RR:function(){return j},Sm:function(){return P},U7:function(){return D},Vp:function(){return l},W6:function(){return w},WE:function(){return b},Wx:function(){return C},Xh:function(){return L},Y8:function(){return R},c4:function(){return F},cn:function(){return z},cx:function(){return S},jL:function(){return x},jv:function(){return M},kJ:function(){return f},mf:function(){return g},o8:function(){return h},pv:function(){return B},vP:function(){return q},xC:function(){return $},zO:function(){return _},zt:function(){return N}});var r,i,o,a="undefined",s=typeof window!==a,u=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],l=1e-7,c={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function d(e,t,n,r){return(e*r+t*n)/(n+r)}function h(e){return typeof e===a}function p(e){return e&&"object"==typeof e}function f(e){return Array.isArray(e)}function m(e){return"string"==typeof e}function g(e){return"function"==typeof e}function v(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function y(e,t){var n,r=m(t)?{separator:t}:t,i=r.separator,o=void 0===i?",":i,a=r.isSeparateFirst,s=r.isSeparateOnlyOpenClose,l=r.isSeparateOpenClose,c=void 0===l?s:l,d=r.openCloseCharacters,h=void 0===d?u:d,p=RegExp("(\\s*"+o+"\\s*|"+h.map(function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n}).join("|")+"|\\s+)","g"),f=e.split(p).filter(Boolean),g=f.length,y=[],b=[];function w(){return!!b.length&&(y.push(b.join("")),b=[],!0)}for(var k=0;k-1?e[r]:n}var D=(r=_(),(i=s&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?i.bind(window):function(e){var t=_();return window.setTimeout(function(){e(t-r)},1e3/60)}),C=(o=s&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame))?o.bind(window):function(e){clearTimeout(e)};function j(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in t)t.push(n);return t}function O(e,t){var n=x(e),r=n.value,i=n.unit;if(p(t)){var o=t[i];if(o){if(g(o))return o(r);if(c[i])return c[i](r,o)}}else if("%"===i)return r*t/100;return c[i]?c[i](r):r}function T(e,t,n){return[[I(t[0],l),I(t[0]*e[1]/e[0],l)],[I(t[1]*e[0]/e[1],l),I(t[1],l)]].filter(function(e){return e.every(function(e,r){return n?e<=t[r]:e>=t[r]})})[0]||e}function A(e,t,n,r){if(!r)return e.map(function(e,r){return Math.max(t[r],Math.min(e,n[r]))});var i=e[0],o=e[1],a=T(e,t,!1),s=a[0],u=a[1],l=T(e,n,!0),c=l[0],d=l[1];return ic||o>d)&&(i=c,o=d),[i,o]}function P(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return n}function R(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function M(e,t){var n=t[0]-e[0],r=Math.atan2(t[1]-e[1],n);return r>=0?r:r+2*Math.PI}function F(e){var t=[0,1].map(function(t){return R(e.map(function(e){return e[t]}))}),n=M(t,e[0]),r=M(t,e[1]);return nr&&r-n<-Math.PI?1:-1}function N(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function I(e,t){return t?Math.round(e/t)*t:e}function L(e,t){return e.forEach(function(n,r){e[r]=I(e[r],t)}),e}function B(e,t){return e.classList?e.classList.contains(t):!!e.className.match(RegExp("(\\s|^)"+t+"(\\s|$)"))}function z(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function U(e,t){if(e.classList)e.classList.remove(t);else{var n=RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function q(e,t,n,r){e.addEventListener(t,n,r)}function $(e,t,n,r){e.removeEventListener(t,n,r)}},25161:function(e,t,n){"use strict";function r(e,t){for(var n=e.length,r=0;r0?m[k]+" "+x:s(x,/&\f/g,m[k])).trim())&&(d[w++]=_);return b(e,t,n,0===o?T:l,d,h,p)}function N(e,t,n,r){return b(e,t,n,A,c(e,0,r),c(e,r+1,-1),r)}var I=function(e,t,n){for(var r=0,i=0;r=i,i=x(),38===r&&12===i&&(t[n]=1),!_(i);)k();return c(y,e,g)},L=function(e,t){var n=-1,r=44;do switch(_(r)){case 0:38===r&&12===x()&&(t[n]=1),e[n]+=I(g-1,t,n);break;case 2:e[n]+=E(r);break;case 4:if(44===r){e[++n]=58===x()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}while(r=k());return e},B=function(e,t){var n;return n=L(S(e),t),y="",n},z=new WeakMap,U=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(n))&&!r){z.set(e,!0);for(var i=[],o=B(t,i),a=n.props,s=0,u=0;s-1&&!e.return)switch(e.type){case A:e.return=function e(t,n){switch(45^l(t,0)?(((n<<2^l(t,0))<<2^l(t,1))<<2^l(t,2))<<2^l(t,3):0){case 5103:return j+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return j+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return j+t+C+t+D+t+t;case 6828:case 4268:return j+t+D+t+t;case 6165:return j+t+D+"flex-"+t+t;case 5187:return j+t+s(t,/(\w+).+(:[^]+)/,j+"box-$1$2"+D+"flex-$1$2")+t;case 5443:return j+t+D+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return j+t+D+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return j+t+D+s(t,"shrink","negative")+t;case 5292:return j+t+D+s(t,"basis","preferred-size")+t;case 6060:return j+"box-"+s(t,"-grow","")+j+t+D+s(t,"grow","positive")+t;case 4554:return j+s(t,/([^-])(transform)/g,"$1"+j+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+D+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,j+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-n>6)switch(l(t,n+1)){case 109:if(45!==l(t,n+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+C+(108==l(t,n+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(s(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==l(t,n+1))break;case 6444:switch(l(t,d(t)-3-(~u(t,"!important")&&10))){case 107:return s(t,":",":"+j)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(45===l(t,14)?"inline-":"")+"box$3$1"+j+"$2$3$1"+D+"$2box$3")+t}break;case 5936:switch(l(t,n+11)){case 114:return j+t+D+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return j+t+D+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return j+t+D+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return j+t+D+t+t}return t}(e.value,e.length);break;case P:return R([w(e,{value:s(e.value,"@","@"+j)})],r);case T:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return R([w(e,{props:[s(t,/:(read-\w+)/,":"+C+"$1")]})],r);case"::placeholder":return R([w(e,{props:[s(t,/:(plac\w+)/,":"+j+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+C+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,D+"input-$1")]})],r)}return""},i.map(o).join("")}}}],H=function(e){var t,n,i,a,m,w,D=e.key;if("css"===D){var C=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(C,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var j=e.stylisPlugins||$,T={},A=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+D+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n2||_(v)>3?"":" "}(M);break;case 92:W+=function(e,t){for(var n;--t&&k()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return n=g+(t<6&&32==x()&&32==k()),c(y,e,n)}(g-1,7);continue;case 47:switch(x()){case 42:case 47:h(b(C=function(e,t){for(;k();)if(e+v===57)break;else if(e+v===84&&47===x())break;return"/*"+c(y,t,g-1)+"*"+o(47===e?e:k())}(k(),g),n,r,O,o(v),c(C,2,-2),0),D);break;default:W+="/"}break;case 123*I:S[j++]=d(W)*B;case 125*I:case 59:case 0:switch(z){case 0:case 125:L=0;case 59+T:R>0&&d(W)-A&&h(R>32?N(W+";",i,r,A-1):N(s(W," ","")+";",i,r,A-2),D);break;case 59:W+=";";default:if(h(H=F(W,n,r,j,T,a,S,U,q=[],$=[],A),m),123===z){if(0===T)e(W,n,H,H,q,m,A,S,$);else switch(99===P&&110===l(W,3)?100:P){case 100:case 109:case 115:e(t,H,H,i&&h(F(t,H,H,0,0,a,S,U,a,q=[],A),$),a,$,A,S,i?q:$);break;default:e(W,H,H,H,[""],$,0,S,$)}}}j=T=R=0,I=B=1,U=W="",A=w;break;case 58:A=1+d(W),R=M;default:if(I<1){if(123==z)--I;else if(125==z&&0==I++&&125==(v=g>0?l(y,--g):0,f--,10===v&&(f=1,p--),v))continue}switch(W+=o(z),z*I){case 38:B=T>0?1:(W+="\f",-1);break;case 44:S[j++]=(d(W)-1)*B,B=1;break;case 64:45===x()&&(W+=E(k())),P=x(),T=A=d(U=W+=function(e){for(;!_(x());)k();return c(y,e,g)}(g)),z++;break;case 45:45===M&&2==d(W)&&(I=0)}}return m}("",null,null,null,[""],t=S(t=e),0,[0],t),y="",n),P)};m=function(e,t,n,r){w=n,I(e?e+"{"+t.styles+"}":t.styles),r&&(L.inserted[t.name]=!0)};var L={key:D,sheet:new r({key:D,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:T,registered:{},insert:m};return L.sheet.hydrate(A),L}},79003:function(e,t){"use strict";t.Z=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&n)*1540483477+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*1540483477+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}},86894:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},94281:function(e,t,n){"use strict";n.d(t,{T:function(){return l},a:function(){return d},w:function(){return u}});var r=n(2784),i=n(73222);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t=Math.abs(e)},W=!0;try{var V=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=(null===(a=V.exec("a"))||void 0===a?void 0:a[0])==="a"}catch(e){W=!1}var G=L?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Y=B?String.fromCodePoint:function(){for(var e,t=[],n=0;no;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");r+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return r},Z=z?Object.fromEntries:function(e){for(var t={},n=0;n=r)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},J=q?function(e){return e.trimStart()}:function(e){return e.replace(F,"")},X=$?function(e){return e.trimEnd()}:function(e){return e.replace(N,"")};function Q(e,t){return new RegExp(e,t)}if(W){var ee=Q("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");s=function(e,t){var n;return ee.lastIndex=t,null!==(n=ee.exec(e)[1])&&void 0!==n?n:""}}else s=function(e,t){for(var n=[];;){var r,i=K(e,t);if(void 0===i||er(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),t+=i>=65536?2:1}return Y.apply(void 0,n)};var et=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){var s=this.parseArgument(e,n);if(s.err)return s;o.push(s.val)}else if(125===a&&e>0)break;else if(35===a&&("plural"===t||"selectordinal"===t)){var u=this.clonePosition();this.bump(),o.push({type:i.pound,location:I(u,this.clonePosition())})}else if(60!==a||this.ignoreTag||47!==this.peek()){if(60===a&&!this.ignoreTag&&en(this.peek()||0)){var s=this.parseTag(e,t);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(e,t);if(s.err)return s;o.push(s.val)}}else{if(!n)return this.error(r.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()));break}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:I(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(r.INVALID_TAG,I(n,this.clonePosition()));var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,u=this.clonePosition();if(!this.bumpIf(""))?{val:{type:i.tag,value:o,children:s,location:I(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,I(u,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o){r+=o;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var u=I(n,this.clonePosition());return{val:{type:i.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(en(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(n);this.bump()}return Y.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Y(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,I(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(r.MALFORMED_ARGUMENT,I(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:I(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,I(n,this.clonePosition()));return this.parseArgumentOptions(e,t,o,n);default:return this.error(r.MALFORMED_ARGUMENT,I(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=s(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:I(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,a){var s,u=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,I(u,c));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var m=X(f.val);if(0===m.length)return this.error(r.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:I(p,this.clonePosition())}}var g=this.tryParseArgumentClose(a);if(g.err)return g;var v=I(a,this.clonePosition());if(h&&G(null==h?void 0:h.style,"::",0)){var y,b=J(h.style.slice(2));if("number"===l){var f=this.parseNumberSkeletonFromString(b,h.styleLocation);if(f.err)return f;return{val:{type:i.number,value:n,location:v,style:f.val},err:null}}if(0===b.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,v);var w=b;this.locale&&(w=function(e,t){for(var n="",r=0;r>1),u=function(e){var t,n=e.hourCycle;if(void 0===n&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=e.language;return"root"!==r&&(t=e.maximize().region),(M[t||""]||M[r||""]||M["".concat(r,"-001")]||M["001"])[0]}(t);for(("H"==u||"k"==u)&&(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else"J"===i?n+="H":n+=i}return n}(b,this.locale));var m={type:o.dateTime,pattern:w,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(y={},w.replace(S,function(e){var t=e.length;switch(e[0]){case"G":y.era=4===t?"long":5===t?"narrow":"short";break;case"y":y.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":y.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":y.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":y.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][t-4];break;case"a":y.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":y.hourCycle="h12",y.hour=["numeric","2-digit"][t-1];break;case"H":y.hourCycle="h23",y.hour=["numeric","2-digit"][t-1];break;case"K":y.hourCycle="h11",y.hour=["numeric","2-digit"][t-1];break;case"k":y.hourCycle="h24",y.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":y.minute=["numeric","2-digit"][t-1];break;case"s":y.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":y.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),y):{}};return{val:{type:"date"===l?i.date:i.time,value:n,location:v,style:m},err:null}}return{val:{type:"number"===l?i.number:"date"===l?i.date:i.time,value:n,location:v,style:null!==(s=null==h?void 0:h.style)&&void 0!==s?s:null},err:null};case"plural":case"selectordinal":case"select":var k=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,I(k,d({},k)));this.bumpSpace();var x=this.parseIdentifierIfPossible(),_=0;if("select"!==l&&"offset"===x.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),x=this.parseIdentifierIfPossible(),_=f.val}var E=this.tryParsePluralOrSelectOptions(e,l,t,x);if(E.err)return E;var g=this.tryParseArgumentClose(a);if(g.err)return g;var D=I(a,this.clonePosition());if("select"===l)return{val:{type:i.select,value:n,options:Z(E.val),location:D},err:null};return{val:{type:i.plural,value:n,options:Z(E.val),offset:_,pluralType:"plural"===l?"cardinal":"ordinal",location:D},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,I(u,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,I(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(D).filter(function(e){return e.length>0}),n=[],r=0;r1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(O,function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(T.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(C.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(C,function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?t=E(E({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=E(E({},t),A(i)));continue}if(j.test(r.stem)){t=E(E({},t),A(r.stem));continue}var o=P(r.stem);o&&(t=E(E({},t),o));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!T.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);a&&(t=E(E({},t),a))}return t}(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,i){for(var o,a=!1,s=[],u=new Set,l=i.value,c=i.location;;){if(0===l.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_SELECTOR,r.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=I(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error("select"===t?r.DUPLICATE_SELECT_ARGUMENT_SELECTOR:r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var m=this.tryParseArgumentClose(p);if(m.err)return m;s.push([l,{value:f.val,location:I(p,this.clonePosition())}]),u.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===s.length?this.error("select"===t?r.EXPECT_SELECT_ARGUMENT_SELECTOR:r.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(r.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=I(r,this.clonePosition());return i?H(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=K(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(G(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&er(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function en(e){return e>=97&&e<=122||e>=65&&e<=90}function er(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ei(e,t){void 0===t&&(t={});var n=new et(e,t=d({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(n.err){var i=SyntaxError(r[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,v(t)||y(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else f(t)&&k(t.style)?delete t.style.location:(m(t)||g(t))&&x(t.style)?delete t.style.location:w(t)&&e(t.children)})}(n.val),n.val}},40283:function(e,t,n){"use strict";n.d(t,{$6:function(){return h},OV:function(){return u},Qe:function(){return c},Rw:function(){return a},X9:function(){return d},bc:function(){return i},gb:function(){return l},wI:function(){return s}});var r,i,o=n(12452);(r=i||(i={})).FORMAT_ERROR="FORMAT_ERROR",r.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",r.INVALID_CONFIG="INVALID_CONFIG",r.MISSING_DATA="MISSING_DATA",r.MISSING_TRANSLATION="MISSING_TRANSLATION";var a=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,o.ZT)(t,e),t}(Error),s=function(e){function t(t,n){return e.call(this,i.UNSUPPORTED_FORMATTER,t,n)||this}return(0,o.ZT)(t,e),t}(a),u=function(e){function t(t,n){return e.call(this,i.INVALID_CONFIG,t,n)||this}return(0,o.ZT)(t,e),t}(a),l=function(e){function t(t,n){return e.call(this,i.MISSING_DATA,t,n)||this}return(0,o.ZT)(t,e),t}(a),c=function(e){function t(t,n,r){return e.call(this,i.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),r)||this}return(0,o.ZT)(t,e),t}(a),d=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o}return(0,o.ZT)(t,e),t}(c),h=function(e){function t(t,n){var r=e.call(this,i.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return r.descriptor=t,r}return(0,o.ZT)(t,e),t}(a)},32428:function(e,t,n){"use strict";n.d(t,{L6:function(){return s},Sn:function(){return l},TB:function(){return h},Z0:function(){return u},ax:function(){return d}});var r=n(12452),i=n(77481),o=n(75413),a=n(40283);function s(e,t,n){return void 0===n&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function l(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function c(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function d(e){void 0===e&&(e=l());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.Z)(function(){for(var e,t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0||!Array.isArray(t)&&t?c({},e,t):{}}var y=a.forwardRef(function(e,t){var n,i,o,a,s,l,h,p,f,w,k,x,_,S,E,D,C,j,O,T=e.icon,A=e.mask,P=e.symbol,R=e.className,M=e.title,F=e.titleId,N=e.maskId,I=g(T),L=v("classes",[].concat(d((i=e.beat,o=e.fade,a=e.beatFade,s=e.bounce,l=e.shake,h=e.flash,p=e.spin,f=e.spinPulse,w=e.spinReverse,k=e.pulse,x=e.fixedWidth,_=e.inverse,S=e.border,E=e.listItem,D=e.flip,C=e.size,j=e.rotation,O=e.pull,Object.keys((c(n={"fa-beat":i,"fa-fade":o,"fa-beat-fade":a,"fa-bounce":s,"fa-shake":l,"fa-flash":h,"fa-spin":p,"fa-spin-reverse":w,"fa-spin-pulse":f,"fa-pulse":k,"fa-fw":x,"fa-inverse":_,"fa-border":S,"fa-li":E,"fa-flip":!0===D,"fa-flip-horizontal":"horizontal"===D||"both"===D,"fa-flip-vertical":"vertical"===D||"both"===D},"fa-".concat(C),null!=C),c(n,"fa-rotate-".concat(j),null!=j&&0!==j),c(n,"fa-pull-".concat(O),null!=O),c(n,"fa-swap-opacity",e.swapOpacity),n)).map(function(e){return n[e]?e:null}).filter(function(e){return e}))),d(R.split(" ")))),B=v("transform","string"==typeof e.transform?r.Qc.transform(e.transform):e.transform),z=v("mask",g(A)),U=(0,r.qv)(I,u(u(u(u({},L),B),z),{},{symbol:P,title:M,titleId:F,maskId:N}));if(!U)return!function(){if(!m&&console&&"function"==typeof console.error){var e;(e=console).error.apply(e,arguments)}}("Could not find icon",I),null;var q=U.abstract,$={ref:t};return Object.keys(e).forEach(function(t){y.defaultProps.hasOwnProperty(t)||($[t]=e[t])}),b(q[0],$)});y.displayName="FontAwesomeIcon",y.propTypes={beat:o().bool,border:o().bool,beatFade:o().bool,bounce:o().bool,className:o().string,fade:o().bool,flash:o().bool,mask:o().oneOfType([o().object,o().array,o().string]),maskId:o().string,fixedWidth:o().bool,inverse:o().bool,flip:o().oneOf([!0,!1,"horizontal","vertical","both"]),icon:o().oneOfType([o().object,o().array,o().string]),listItem:o().bool,pull:o().oneOf(["right","left"]),pulse:o().bool,rotation:o().oneOf([0,90,180,270]),shake:o().bool,size:o().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o().bool,spinPulse:o().bool,spinReverse:o().bool,symbol:o().oneOfType([o().bool,o().string]),title:o().string,titleId:o().string,transform:o().oneOfType([o().string,o().object]),swapOpacity:o().bool},y.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var b=(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map(function(n){return e(t,n)}),o=Object.keys(n.attributes||{}).reduce(function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.indexOf(":"),r=p(t.slice(0,n)),i=t.slice(n+1).trim();return r.startsWith("webkit")?e[r.charAt(0).toUpperCase()+r.slice(1)]=i:e[r]=i,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[p(t)]=r}return e},{attrs:{}}),a=r.style,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,f);return o.attrs.style=u(u({},o.attrs.style),void 0===a?{}:a),t.apply(void 0,[n.tag,u(u({},o.attrs),s)].concat(d(i)))}).bind(null,a.createElement)},95374:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s}});var r=n(17578),i=n(2784);let{useSyncExternalStoreWithSelector:o}=n(41110),a=e=>{let t="function"==typeof e?(0,r.Z)(e):e,n=(e,n)=>(function(e,t=e.getState,n){let r=o(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,i.useDebugValue)(r),r})(t,e,n);return Object.assign(n,t),n};var s=e=>e?a(e):a},17578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let r=e=>{let t;let n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(i!==t){let e=t;t=(null!=r?r:"object"!=typeof i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,i,o),o},i=e=>e?r(e):r},80098:function(e,t,n){"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:function(){return r}})},33189:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:function(){return r}})},48555:function(e,t,n){"use strict";n.d(t,{Re:function(){return o},Zq:function(){return a},kK:function(){return i}});var r=n(33189);function i(e){var t=(0,r.Z)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,r.Z)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,r.Z)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},51414:function(e,t,n){"use strict";var r=n(80098),i=n(48555);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},a=t.elements[e];(0,i.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,n),Object.keys(o).forEach(function(e){var t=o[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var o=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,i.Re)(o)&&(0,r.Z)(o)&&(Object.assign(o.style,s),Object.keys(a).forEach(function(e){o.removeAttribute(e)}))})}},requires:["computeStyles"]}},62465:function(e,t,n){"use strict";n.d(t,{fi:function(){return ea}});var r,i,o,a,s,u=n(48555),l=Math.max,c=Math.min,d=Math.round;function h(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if((0,u.Re)(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=d(n.width)/a||1),o>0&&(i=d(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}var p=n(33189);function f(e){var t=(0,p.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var m=n(80098);function g(e){return(((0,u.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return h(g(e)).left+f(e).scrollLeft}function y(e){return(0,p.Z)(e).getComputedStyle(e)}function b(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function w(e){var t=h(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===(0,m.Z)(e)?e:e.assignedSlot||e.parentNode||((0,u.Zq)(e)?e.host:null)||g(e)}function x(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf((0,m.Z)(t))>=0?t.ownerDocument.body:(0,u.Re)(t)&&b(t)?t:e(k(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=(0,p.Z)(r),a=i?[o].concat(o.visualViewport||[],b(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(x(k(a)))}function _(e){return(0,u.Re)(e)&&"fixed"!==y(e).position?e.offsetParent:null}function S(e){for(var t,n=(0,p.Z)(e),r=_(e);r&&(t=r,["table","td","th"].indexOf((0,m.Z)(t))>=0)&&"static"===y(r).position;)r=_(r);return r&&("html"===(0,m.Z)(r)||"body"===(0,m.Z)(r)&&"static"===y(r).position)?n:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,u.Re)(e)&&"fixed"===y(e).position)return null;for(var n=k(e);(0,u.Re)(n)&&0>["html","body"].indexOf((0,m.Z)(n));){var r=y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||n}var E="bottom",D="right",C="left",j="auto",O=["top",E,D,C],T="start",A="viewport",P="popper",R=O.reduce(function(e,t){return e.concat([t+"-"+T,t+"-end"])},[]),M=[].concat(O,[j]).reduce(function(e,t){return e.concat([t,t+"-"+T,t+"-end"])},[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],N={placement:"bottom",modifiers:[],strategy:"absolute"};function I(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function q(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?B(i):null,a=i?z(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case D:t={x:n.x+n.width,y:u};break;case C:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var l=o?U(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case T:t[l]=t[l]-(n[c]/2-r[c]/2);break;case"end":t[l]=t[l]+(n[c]/2-r[c]/2)}}return t}var $={top:"auto",right:"auto",bottom:"auto",left:"auto"};function H(e){var t,n,r,i,o,a=e.popper,s=e.popperRect,u=e.placement,l=e.variation,c=e.offsets,h=e.position,f=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,b=e.isFixed,w=!0===v?(t=c.x,n=c.y,{x:d(t*(r=window.devicePixelRatio||1))/r||0,y:d(n*r)/r||0}):"function"==typeof v?v(c):c,k=w.x,x=void 0===k?0:k,_=w.y,j=void 0===_?0:_,O=c.hasOwnProperty("x"),T=c.hasOwnProperty("y"),A=C,P="top",R=window;if(m){var M=S(a),F="clientHeight",N="clientWidth";M===(0,p.Z)(a)&&"static"!==y(M=g(a)).position&&"absolute"===h&&(F="scrollHeight",N="scrollWidth"),("top"===u||(u===C||u===D)&&"end"===l)&&(P=E,j-=(b&&R.visualViewport?R.visualViewport.height:M[F])-s.height,j*=f?1:-1),(u===C||("top"===u||u===E)&&"end"===l)&&(A=D,x-=(b&&R.visualViewport?R.visualViewport.width:M[N])-s.width,x*=f?1:-1)}var I=Object.assign({position:h},m&&$);return f?Object.assign({},I,((o={})[P]=T?"0":"",o[A]=O?"0":"",o.transform=1>=(R.devicePixelRatio||1)?"translate("+x+"px, "+j+"px)":"translate3d("+x+"px, "+j+"px, 0)",o)):Object.assign({},I,((i={})[P]=T?j+"px":"",i[A]=O?x+"px":"",i.transform="",i))}var W=n(51414),V={left:"right",right:"left",bottom:"top",top:"bottom"};function G(e){return e.replace(/left|right|bottom|top/g,function(e){return V[e]})}var Y={start:"end",end:"start"};function Z(e){return e.replace(/start|end/g,function(e){return Y[e]})}function K(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,u.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function J(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function X(e,t){var n,r,i,o,a,s,c,d,m,b,w,k,x,_,S,E,D;return t===A?J((n=(0,p.Z)(e),r=g(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0,i&&(o=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,c=i.offsetTop)),{width:o,height:a,x:s+v(e),y:c})):(0,u.kK)(t)?((d=h(t)).top=d.top+t.clientTop,d.left=d.left+t.clientLeft,d.bottom=d.top+t.clientHeight,d.right=d.left+t.clientWidth,d.width=t.clientWidth,d.height=t.clientHeight,d.x=d.left,d.y=d.top,d):J((m=g(e),w=g(m),k=f(m),x=null==(b=m.ownerDocument)?void 0:b.body,_=l(w.scrollWidth,w.clientWidth,x?x.scrollWidth:0,x?x.clientWidth:0),S=l(w.scrollHeight,w.clientHeight,x?x.scrollHeight:0,x?x.clientHeight:0),E=-k.scrollLeft+v(m),D=-k.scrollTop,"rtl"===y(x||w).direction&&(E+=l(w.clientWidth,x?x.clientWidth:0)-_),{width:_,height:S,x:E,y:D}))}function Q(){return{top:0,right:0,bottom:0,left:0}}function ee(e){return Object.assign({},Q(),e)}function et(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function en(e,t){void 0===t&&(t={});var n,r,i,o,a,s,d,p,f,v=t,b=v.placement,w=void 0===b?e.placement:b,_=v.boundary,C=v.rootBoundary,j=v.elementContext,T=void 0===j?P:j,R=v.altBoundary,M=v.padding,F=void 0===M?0:M,N=ee("number"!=typeof F?F:et(F,O)),I=e.rects.popper,L=e.elements[void 0!==R&&R?T===P?"reference":P:T],B=(n=(0,u.kK)(L)?L:L.contextElement||g(e.elements.popper),r=void 0===_?"clippingParents":_,i=void 0===C?A:C,p=(d=[].concat("clippingParents"===r?(o=x(k(n)),s=(a=["absolute","fixed"].indexOf(y(n).position)>=0)&&(0,u.Re)(n)?S(n):n,(0,u.kK)(s)?o.filter(function(e){return(0,u.kK)(e)&&K(e,s)&&"body"!==(0,m.Z)(e)&&(!a||"static"!==y(e).position)}):[]):[].concat(r),[i]))[0],(f=d.reduce(function(e,t){var r=X(n,t);return e.top=l(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=l(r.left,e.left),e},X(n,p))).width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f),z=h(e.elements.reference),U=q({reference:z,element:I,strategy:"absolute",placement:w}),$=J(Object.assign({},I,U)),H=T===P?$:z,W={top:B.top-H.top+N.top,bottom:H.bottom-B.bottom+N.bottom,left:B.left-H.left+N.left,right:H.right-B.right+N.right},V=e.modifiersData.offset;if(T===P&&V){var G=V[w];Object.keys(W).forEach(function(e){var t=[D,E].indexOf(e)>=0?1:-1,n=["top",E].indexOf(e)>=0?"y":"x";W[e]+=G[n]*t})}return W}function er(e,t,n){return l(e,c(t,n))}function ei(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eo(e){return["top",D,E,C].some(function(t){return e[t]>=0})}var ea=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=(0,p.Z)(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(e){e.addEventListener("scroll",n.update,L)}),s&&u.addEventListener("resize",n.update,L),function(){o&&l.forEach(function(e){e.removeEventListener("scroll",n.update,L)}),s&&u.removeEventListener("resize",n.update,L)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=q({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,a=void 0===o||o,s={placement:B(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,H(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,H(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},W.Z,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=M.reduce(function(e,n){var r,i,a,s,u,l;return e[n]=(r=t.rects,a=[C,"top"].indexOf(i=B(n))>=0?-1:1,u=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],l=s[1],u=u||0,l=(l||0)*a,[C,D].indexOf(i)>=0?{x:l,y:u}:{x:u,y:l}),e},{}),s=a[t.placement],u=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=B(g)===g,y=u||(v||!f?[G(g)]:function(e){if(B(e)===j)return[];var t=G(e);return[Z(e),t,Z(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,a,s,u,h,p,g,v,y,b;return e.concat(B(n)===j?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:l,flipVariations:f,allowedAutoPlacements:m}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,u=r.flipVariations,p=void 0===(h=r.allowedAutoPlacements)?M:h,0===(y=(v=(g=z(i))?u?R:R.filter(function(e){return z(e)===g}):O).filter(function(e){return p.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=en(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[B(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,k=t.rects.popper,x=new Map,_=!0,S=b[0],A=0;A=0,L=I?"width":"height",U=en(t,{placement:P,boundary:c,rootBoundary:d,altBoundary:h,padding:l}),q=I?N?D:C:N?E:"top";w[L]>k[L]&&(q=G(q));var $=G(q),H=[];if(o&&H.push(U[F]<=0),s&&H.push(U[q]<=0,U[$]<=0),H.every(function(e){return e})){S=P,_=!1;break}x.set(P,H)}if(_)for(var W=f?3:1,V=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},Y=W;Y>0&&"break"!==V(Y);Y--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=void 0===h||h,f=n.tetherOffset,m=void 0===f?0:f,g=en(t,{boundary:a,rootBoundary:s,padding:d,altBoundary:u}),v=B(t.placement),y=z(t.placement),b=!y,k=U(v),x="x"===k?"y":"x",_=t.modifiersData.popperOffsets,j=t.rects.reference,O=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,P="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(_){if(void 0===i||i){var F,N="y"===k?"top":C,I="y"===k?E:D,L="y"===k?"height":"width",q=_[k],$=q+g[N],H=q-g[I],W=p?-O[L]/2:0,V=y===T?j[L]:O[L],G=y===T?-O[L]:-j[L],Y=t.elements.arrow,Z=p&&Y?w(Y):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Q(),J=K[N],X=K[I],ee=er(0,j[L],Z[L]),et=b?j[L]/2-W-ee-J-P.mainAxis:V-ee-J-P.mainAxis,ei=b?-j[L]/2+W+ee+X+P.mainAxis:G+ee+X+P.mainAxis,eo=t.elements.arrow&&S(t.elements.arrow),ea=eo?"y"===k?eo.clientTop||0:eo.clientLeft||0:0,es=null!=(F=null==R?void 0:R[k])?F:0,eu=er(p?c($,q+et-es-ea):$,q,p?l(H,q+ei-es):H);_[k]=eu,M[k]=eu-q}if(void 0!==o&&o){var el,ec,ed="x"===k?"top":C,eh="x"===k?E:D,ep=_[x],ef="y"===x?"height":"width",em=ep+g[ed],eg=ep-g[eh],ev=-1!==["top",C].indexOf(v),ey=null!=(ec=null==R?void 0:R[x])?ec:0,eb=ev?em:ep-j[ef]-O[ef]-ey+P.altAxis,ew=ev?ep+j[ef]+O[ef]-ey-P.altAxis:eg,ek=p&&ev?(el=er(eb,ep,ew))>ew?ew:el:er(p?eb:em,ep,p?ew:eg);_[x]=ek,M[x]=ek-ep}t.modifiersData[r]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,u=B(r.placement),l=U(u),c=[C,D].indexOf(u)>=0?"height":"width";if(a&&s){var d=ee("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:et(t,O)),h=w(a),p="y"===l?"top":C,f="y"===l?E:D,m=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],g=s[l]-r.rects.reference[l],v=S(a),y=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=d[p],k=y-h[c]-d[f],x=y/2-h[c]/2+(m/2-g/2),_=er(b,x,k);r.modifiersData[i]=((n={})[l]=_,n.centerOffset=_-x,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&K(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=en(t,{elementContext:"reference"}),s=en(t,{altBoundary:!0}),u=ei(a,r),l=ei(s,i,o),c=eo(u),d=eo(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=r.defaultOptions)?N:a,function(e,t,n){void 0===n&&(n=s);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},N,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,y={state:a,setOptions:function(n){var r,i,c,d,h,p="function"==typeof n?n(a.options):n;k(),a.options=Object.assign({},s,a.options,p),a.scrollParents={reference:(0,u.kK)(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var f=(i=Object.keys(r=[].concat(o,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),c=new Map,d=new Set,h=[],i.forEach(function(e){c.set(e.name,e)}),i.forEach(function(e){d.has(e.name)||function e(t){d.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!d.has(t)){var n=c.get(t);n&&e(n)}}),h.push(t)}(e)}),F.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=f.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:y,options:void 0===n?{}:n});l.push(i||function(){})}}),y.update()},forceUpdate:function(){if(!c){var e,t,n,r,i,o,s,l,k,x,_,E,D=a.elements,C=D.reference,j=D.popper;if(I(C,j)){a.rects={reference:(t=S(j),n="fixed"===a.options.strategy,r=(0,u.Re)(t),l=(0,u.Re)(t)&&(o=d((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=d(i.height)/t.offsetHeight||1,1!==o||1!==s),k=g(t),x=h(C,l),_={scrollLeft:0,scrollTop:0},E={x:0,y:0},(r||!r&&!n)&&(("body"!==(0,m.Z)(t)||b(k))&&(_=(e=t)!==(0,p.Z)(e)&&(0,u.Re)(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:f(e)),(0,u.Re)(t)?(E=h(t,!0),E.x+=t.clientLeft,E.y+=t.clientTop):k&&(E.x=v(k))),{x:x.left+_.scrollLeft-E.x,y:x.top+_.scrollTop-E.y,width:x.width,height:x.height}),popper:w(j)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var O=0;O1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:h(e)?3:0}function u(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function c(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return L&&e instanceof Map}function h(e){return B&&e instanceof Set}function p(e){return e.o||e.t}function f(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=V(e);delete t[$];for(var n=W(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&a(e,function(e,t){return m(t,!0)},!0)),e}function g(){r(2)}function v(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function y(e){var t=G[e];return t||r(18,e),t}function b(e,t){t&&(y("Patches"),e.u=[],e.s=[],e.v=t)}function w(e){k(e),e.p.forEach(_),e.p=null}function k(e){e===N&&(N=e.l)}function x(e){return N={p:[],l:N,h:e,m:!0,_:0}}function _(e){var t=e[$];0===t.i||1===t.i?t.j():t.O=!0}function S(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||y("ES5").S(t,e,i),i?(n[$].P&&(w(t),r(4)),o(e)&&(e=E(t,e),t.l||C(t,e)),t.u&&y("Patches").M(n[$].t,e,t.u,t.s)):e=E(t,n,[]),w(t),t.u&&t.v(t.u,t.s),e!==U?e:void 0}function E(e,t,n){if(v(t))return t;var r=t[$];if(!r)return a(t,function(i,o){return D(e,r,t,i,o,n)},!0),t;if(r.A!==e)return t;if(!r.P)return C(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=f(r.k):r.o;a(3===r.i?new Set(i):i,function(t,o){return D(e,r,i,t,o,n)}),C(e,i,!1),n&&e.u&&y("Patches").R(r,n,e.u,e.s)}return r.o}function D(e,t,n,r,a,s){if(i(a)){var c=E(e,a,s&&t&&3!==t.i&&!u(t.D,r)?s.concat(r):void 0);if(l(n,r,c),!i(c))return;e.m=!1}if(o(a)&&!v(a)){if(!e.h.F&&e._<1)return;E(e,a),t&&t.A.l||C(e,a)}}function C(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&m(t,n)}function j(e,t){var n=e[$];return(n?p(n):e)[t]}function O(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function T(e){e.P||(e.P=!0,e.l&&T(e.l))}function A(e){e.o||(e.o=f(e.t))}function P(e,t,n){var r,i,o,a,s,u,l,c=d(t)?y("MapSet").N(t,n):h(t)?y("MapSet").T(t,n):e.g?(o=i={i:(r=Array.isArray(t))?1:0,A:n?n.A:N,P:!1,I:!1,D:{},l:n,t:t,k:null,o:null,j:null,C:!1},a=Y,r&&(o=[i],a=Z),u=(s=Proxy.revocable(o,a)).revoke,l=s.proxy,i.k=l,i.j=u,l):y("ES5").J(t,n);return(n?n.A:N).p.push(c),c}function R(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f(e)}n.d(t,{xC:function(){return eh},oM:function(){return em}});var M,F,N,I="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),L="undefined"!=typeof Map,B="undefined"!=typeof Set,z="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,U=I?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),q=I?Symbol.for("immer-draftable"):"__$immer_draftable",$=I?Symbol.for("immer-state"):"__$immer_state",H=""+Object.prototype.constructor,W="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,V=Object.getOwnPropertyDescriptors||function(e){var t={};return W(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},G={},Y={get:function(e,t){if(t===$)return e;var n,r,i=p(e);if(!u(i,t))return(r=O(i,t))?"value"in r?r.value:null===(n=r.get)||void 0===n?void 0:n.call(e.k):void 0;var a=i[t];return e.I||!o(a)?a:a===j(e.t,t)?(A(e),e.o[t]=P(e.A.h,a,e)):a},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,n){var r=O(p(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=j(p(e),t),o=null==i?void 0:i[$];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(c(n,i)&&(void 0!==n||u(e.t,t)))return!0;A(e),T(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.D[t]=!1,A(e),T(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Z={};a(Y,function(e,t){Z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Z.deleteProperty=function(e,t){return Z.set.call(this,e,t,void 0)},Z.set=function(e,t,n){return Y.set.call(this,e[0],t,n,e[0])};var K=new(function(){function e(e){var t=this;this.g=z,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a,s=n;return n=e,function(e){var r=this;void 0===e&&(e=s);for(var i=arguments.length,o=Array(i>1?i-1:0),a=1;a1?r-1:0),o=1;o=0;n--){var n,r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=y("Patches").$;return i(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}()),J=K.produce;K.produceWithPatches.bind(K),K.setAutoFreeze.bind(K),K.setUseProxies.bind(K),K.applyPatches.bind(K),K.createDraft.bind(K),K.finishDraft.bind(K);var X=n(38726);function Q(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var ee=Q();ee.withExtraArgument=Q,n(34406);var et=(M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),en=function(e,t){for(var n=0,r=t.length,i=e.length;n=0;t--){var i=e[t][$];if(!i.P)switch(i.i){case 5:r(i)&&T(i);break;case 4:n(i)&&T(i)}}}function n(e){for(var t=e.t,n=e.k,r=W(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==$){var a=t[o];if(void 0===a&&!u(t,o))return!0;var s=n[o],l=s&&s[$];if(l?l.t!==a:!c(s,a))return!0}}var d=!!t[$];return r.length!==W(t).length+(d?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;rr-o?(u[1]>s.top||ru[1])&&(l[1]=1),s.left>n-o?(u[0]>s.left||nu[0])&&(l[0]=1),clearTimeout(this._timer),(!!l[0]||!!l[1])&&this._continueDrag(a(a({},t),{direction:l,inputEvent:e,isDrag:!0}))},n.checkScroll=function(e){var t=this;if(this._isWait)return!1;var n=e.prevScrollPos,r=void 0===n?this._prevScrollPos:n,i=e.direction,o=e.throttleTime,a=void 0===o?0:o,s=e.inputEvent,u=e.isDrag,l=this._getScrollPosition(i||[0,0],e),c=l[0]-r[0],d=l[1]-r[1],h=i||[c?Math.abs(c)/c:0,d?Math.abs(d)/d:0];return this._prevScrollPos=l,(!!c||!!d)&&(this.trigger("move",{offsetX:h[0]?c:0,offsetY:h[1]?d:0,inputEvent:s}),a&&u&&(this._timer=window.setTimeout(function(){t._continueDrag(e)},a)),!0)},n.dragEnd=function(){clearTimeout(this._timer)},n._getScrollPosition=function(e,t){var n=t.container,r=t.getScrollPosition;return(void 0===r?function(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}:r)({container:n,direction:e})},n._continueDrag=function(e){var t=this,n=e.container,r=e.direction,o=e.throttleTime,s=e.useScroll,u=e.isDrag,l=e.inputEvent;if(!u||!this._isWait){var c=(0,i.zO)(),d=Math.max(o+this._prevTime-c,0);if(d>0)return this._timer=window.setTimeout(function(){t._continueDrag(e)},d),!1;this._prevTime=c;var h=this._getScrollPosition(r,e);return this._prevScrollPos=h,u&&(this._isWait=!0),this.trigger("scroll",{container:n,direction:r,inputEvent:l}),this._isWait=!1,s||this.checkScroll(a(a({},e),{prevScrollPos:h,direction:r,inputEvent:l}))}},t}(r.Z);t.Z=s},23949:function(e,t,n){"use strict";var r=n(90824),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1&&i.splice(o,1)}}else this._events[e]=[]}else this._events={};return this},t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise(function(t){n._addEvent(e,t,{once:!0})})},t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var i=!1;return t.eventType=e,t.stop=function(){i=!0},t.currentTarget=this,(function(){for(var e=0,t=0,n=arguments.length;t0&&!(0,x.s)()},function(){return(0,i.mG)(r,void 0,void 0,function(){var r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:if(!(r=t.pop()))return[2];return[4,(0,M.a)(r,e)];case 1:return i.sent() instanceof _._||n.push(r),[2]}})})})];case 1:return o.sent(),n.map(function(e){return t.pushWithBackoff(e)}),[2,t]}})})}(n,t)];case 1:return o=a.sent(),e=!1,t.todo>0&&r(e,o,n,r),[2]}})})},5e3*Math.random())}var ek=function(e,t,n){n.getCalls(e).forEach(function(e){eD(t,e).catch(console.error)})},ex=ek.bind(void 0,"on"),e_=ek.bind(void 0,"setAnonymousId"),eS=function(e,t){t.toArray().forEach(function(t){setTimeout(function(){eD(e,t).catch(console.error)},0)})},eE=function(){function e(){this._value={}}return e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},e.prototype.getCalls=function(e){var t;return null!==(t=this._value[e])&&void 0!==t?t:[]},e.prototype.push=function(){for(var e=this,t=[],n=0;n0))return[3,2];return[4,n.e(4604).then(n.bind(n,27725)).then(function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)})];case 1:return p=E.sent(),[3,3];case 2:p=void 0,E.label=3;case 3:if(h=p,"test"===a().NODE_ENV||!(Object.keys(e.integrations).length>1))return[3,5];return[4,n.e(9464).then(n.bind(n,17761)).then(function(n){return n.ajsDestinations(e,t.integrations,r,h)})];case 4:return m=E.sent(),[3,6];case 5:m=[],E.label=6;case 6:if(f=m,!e.legacyVideoPluginsEnabled)return[3,8];return[4,n.e(8150).then(n.bind(n,83997)).then(function(e){return e.loadLegacyVideoPlugins(t)})];case 7:E.sent(),E.label=8;case 8:if(!(null===(l=r.plan)||void 0===l?void 0:l.track))return[3,10];return[4,n.e(7493).then(n.bind(n,63338)).then(function(t){var n;return t.schemaFilter(null===(n=r.plan)||void 0===n?void 0:n.track,e)})];case 9:return y=E.sent(),[3,11];case 10:y=void 0,E.label=11;case 11:return v=y,b=(0,er.o)(e,o),[4,(function(e,t,n,r,o){var a,u,l;return(0,i.mG)(this,void 0,void 0,function(){var c,d,h,p=this;return(0,i.Jh)(this,function(f){switch(f.label){case 0:return c=[],d=(0,s.Vl)(),h=null!==(u=null===(a=e.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==u?u:[],[4,Promise.all((null!==(l=e.remotePlugins)&&void 0!==l?l:[]).map(function(e){return(0,i.mG)(p,void 0,void 0,function(){var a,s,u,l,p,f,m,g;return(0,i.Jh)(this,function(v){switch(v.label){case 0:if(!1===t.All&&!t[e.name]||!1===t[e.name])return[2];v.label=1;case 1:if(v.trys.push([1,12,,13]),!r)return[3,7];s=(a=e.url.split("/"))[a.length-2],u=e.url.replace(s,btoa(s).replace(/=/g,"")),v.label=2;case 2:return v.trys.push([2,4,,6]),[4,(0,ec.v)(u.replace("https://cdn.segment.com",d))];case 3:case 5:return v.sent(),[3,6];case 4:return v.sent(),[4,(0,ec.v)(e.url.replace("https://cdn.segment.com",d))];case 6:return[3,9];case 7:return[4,(0,ec.v)(e.url.replace("https://cdn.segment.com",d))];case 8:v.sent(),v.label=9;case 9:if(l=e.libraryName,"function"!=typeof window[l])return[3,11];return p=window[l],[4,(0,el.O)(p((0,i.pi)((0,i.pi)({},e.settings),n[e.name])))];case 10:(function(e){if(!Array.isArray(e))throw Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach(function(e){t.forEach(function(t){var n;if(void 0===e[t])throw Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))})})})(m=Array.isArray(f=v.sent())?f:[f]),g=h.filter(function(t){return t.destinationName===e.creationName}),m.forEach(function(t){var n=new eh(e.creationName,t);g.length&&o&&"destination"===t.type&&n.addMiddleware(o),c.push(n)}),v.label=11;case 11:return[3,13];case 12:return console.warn("Failed to load Remote Plugin",v.sent()),[3,13];case 13:return[2]}})})}))];case 1:return f.sent(),[2,c.filter(Boolean)]}})})})(e,t.integrations,b,o.obfuscate,h).catch(function(){return[]})];case 12:return w=E.sent(),k=(0,i.ev)((0,i.ev)((0,i.ev)([g,eu],u,!0),f,!0),w,!0),v&&k.push(v),(null===(c=r.integrations)||void 0===c?void 0:c.All)===!1&&!r.integrations["Segment.io"]||r.integrations&&!1===r.integrations["Segment.io"]||k.push(function(e,t,n){var r,o,a,s,u=e.options.disableClientPersistence?new T.Z(e.queue.queue.maxAttempts,[]):new A.$(e.queue.queue.maxAttempts,"dest-Segment.io"),l=null!==(r=null==t?void 0:t.apiHost)&&void 0!==r?r:"api.segment.io/v1",c=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",d="".concat(c,"://").concat(l),h=(null===(a=null==t?void 0:t.deliveryStrategy)||void 0===a?void 0:a.strategy)==="batching"?function(e,t){var n,r,o,a=[],s=!1,u=null!==(n=null==t?void 0:t.size)&&void 0!==n?n:10,l=null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:5e3;function c(t){if(0!==t.length){var n,r=null===(n=t[0])||void 0===n?void 0:n.writeKey;return em("https://".concat(e,"/b"),{keepalive:s,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:t,writeKey:r})})}}function d(){return(0,i.mG)(this,void 0,void 0,function(){var e;return(0,i.Jh)(this,function(t){return a.length?(e=a,a=[],[2,c(e)]):[2]})})}return ef(function(){if(s=!0,a.length){var e,t;Promise.all((e=[],t=0,a.forEach(function(n){eg(e[t])>=64&&t++,e[t]?e[t].push(n):e[t]=[n]}),e).map(c)).catch(console.error)}}),{dispatch:function(e,t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(e){return a.push(t),[2,a.length>=u||eg(a)>=450||s?d():void(o||(o=setTimeout(function(){o=void 0,d().catch(console.error)},l)))]})})}}}(l,null===(s=null==t?void 0:t.deliveryStrategy)||void 0===s?void 0:s.config):{dispatch:function(e,t){return ev(e,{headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(t)})}};function p(r){return(0,i.mG)(this,void 0,void 0,function(){var o,a;return(0,i.Jh)(this,function(i){if((0,x.s)())return u.push(r),ew(!1,u,f,ew),[2,r];if(o=r.event.type.charAt(0),a=(0,ep.D)(r.event).json(),"track"===r.event.type&&delete a.traits,"alias"===r.event.type){var s,l,c,p,m,g;s=a,g=e.user(),s.previousId=null!==(p=null!==(c=null!==(l=s.previousId)&&void 0!==l?l:s.from)&&void 0!==c?c:g.id())&&void 0!==p?p:g.anonymousId(),s.userId=null!==(m=s.userId)&&void 0!==m?m:s.to,delete s.from,delete s.to,a=s}return[2,h.dispatch("".concat(d,"/").concat(o),(0,ey.Fv)(e,a,t,n)).then(function(){return r}).catch(function(e){return("error"===e.type||"Failed to fetch"===e.message)&&(u.push(r),ew(!1,u,f,ew)),r})]})})}var f={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:p,identify:p,page:p,alias:p,group:p};return f}(t,b["Segment.io"],e.integrations)),[4,t.register.apply(t,k)];case 13:if(_=E.sent(),!Object.entries(null!==(d=e.enabledMiddleware)&&void 0!==d?d:{}).some(function(e){return e[1]}))return[3,15];return[4,n.e(9214).then(n.bind(n,65212)).then(function(n){var r=n.remoteMiddlewares;return(0,i.mG)(S,void 0,void 0,function(){return(0,i.Jh)(this,function(n){switch(n.label){case 0:return[4,r(_,e,o.obfuscate)];case 1:return[2,Promise.all(n.sent().map(function(e){return t.addSourceMiddleware(e)}))]}})})})];case 14:E.sent(),E.label=15;case 15:return[2,_]}})})}(m,w,b,t,k)];case 4:if(S=j.sent(),E=null!==(p=window.location.search)&&void 0!==p?p:"",D=null!==(f=window.location.hash)&&void 0!==f?f:"",!(C=E.length?E:D.replace(/(?=#).*(?=\?)/,"")).includes("ajs_"))return[3,6];return[4,w.queryString(C).catch(console.error)];case 5:j.sent(),j.label=6;case 6:return w.initialized=!0,w.emit("initialize",e,t),t.initialPageview&&w.page().catch(console.error),[4,function(e,t){return(0,i.mG)(this,void 0,void 0,function(){return(0,i.Jh)(this,function(n){switch(n.label){case 0:return t.push.apply(t,eO()),[4,(0,i.mG)(void 0,void 0,void 0,function(){var n,r;return(0,i.Jh)(this,function(i){switch(i.label){case 0:n=0,r=t.getCalls("addSourceMiddleware"),i.label=1;case 1:if(!(n1){var e=this._logs.reduce(function(e,t){var n,r,i,o=(0,a.pi)((0,a.pi)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete o.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,a.pi)((0,a.pi)({},e),((n={})[s]=o,n))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")});this._logs=[]},e}(),u=function(){function e(e){this.metrics=[],this.remoteMetrics=e}return e.prototype.increment=function(e,t,n){var r;void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()}),null===(r=this.remoteMetrics)||void 0===r||r.increment(e,null!=n?n:[])},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map(function(e){return(0,a.pi)((0,a.pi)({},e),{tags:e.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:({gauge:"g",counter:"c"})[e.type],e:e.timestamp}})},e}(),l=n(26528),c=n.n(l),d=n(38497),h=n(33356);function p(e){console.error("Error sending segment performance metrics",e)}var f=function(){function e(e){var t,n,r,i,o=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:"api.segment.io/v1",this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var a=!1,s=function(){a||(a=!0,o.flush().catch(p),a=!1,setTimeout(s,o.flushTimer))};s()}}return e.prototype.increment=function(e,t){if(!(!e.includes("analytics_js.")||0===t.length||Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=t.reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e},{});n.library="analytics.js","web"===(0,h.Bz)()?n.library_version="next-".concat(d.i):n.library_version="npm:next-".concat(d.i),this.queue.push({type:"Counter",metric:e,value:1,tags:n}),e.includes("error")&&this.flush().catch(p)}},e.prototype.flush=function(){return(0,a.mG)(this,void 0,void 0,function(){var e=this;return(0,a.Jh)(this,function(t){switch(t.label){case 0:if(this.queue.length<=0)return[2];return[4,this.send().catch(function(t){p(t),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},e.prototype.send=function(){return(0,a.mG)(this,void 0,void 0,function(){var e,t,n;return(0,a.Jh)(this,function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,c()(n,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},e}(),m=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},g=function(){function e(e,t){this.logger=new s,this.cancel=function(e){if(e)throw e;throw new m({reason:"Context Cancel"})},this._attempts=0,this._event=e,this._id=null!=t?t:(0,i.v4)(),this.stats=new u(r)}return e.initMetrics=function(e){r=new f(e)},e.system=function(){return new e({type:"track",event:"system"})},e.prototype.isSame=function(e){return e._id===this._id},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this._event},set:function(e){this._event=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attempts",{get:function(){return this._attempts},set:function(e){this._attempts=e},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if((null===(n=this._event.integrations)||void 0===n?void 0:n[r])===!1)return this._event}return(0,o.N)(this._event,e,t),this._event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this._event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},79677:function(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{j:function(){return r},s:function(){return i}})},87554:function(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{a:function(){return r}})},37759:function(e,t,n){"use strict";n.d(t,{a:function(){return o},z:function(){return a}});var r=n(42487),i=n(61668);function o(e,t){var n="action"in t?t.action.name:t.name;e.log("debug","plugin",{plugin:n});var o=new Date().getTime(),a=t[e.event.type];return void 0===a?Promise.resolve(e):(function(e){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e()];case 1:return[2,t.sent()];case 2:return[2,Promise.reject(t.sent())];case 3:return[2]}})})})(function(){return a.apply(t,[e])}).then(function(e){var t=new Date().getTime()-o;return e.stats.gauge("plugin_time",t,["plugin:".concat(n)]),e}).catch(function(t){if(t instanceof i.Y&&"middleware_cancellation"===t.type)throw t;return t instanceof i.Y?e.log("warn",t.type,{plugin:n,error:t}):(e.log("error","plugin Error",{plugin:n,error:t}),e.stats.increment("plugin_error",1,["plugin:".concat(n)])),t})}function a(e,t){return o(e,t).then(function(t){if(t instanceof i._)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)})}},24516:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(21805);function i(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0||t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),i=0;ie.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)});return this.queue=this.queue.sort(function(t,n){return e.getAttempts(t)-e.getAttempts(n)}),r},t.prototype.pushWithBackoff=function(e){var t,n,r,i,a,s=this;if(0===this.getAttempts(e))return this.push(e)[0];var u=this.updateAttempts(e);return!(u>this.maxAttempts||this.includes(e))&&(setTimeout(function(){s.queue.push(e),s.future=s.future.filter(function(t){return t.id!==e.id}),s.emit(o)},(t={attempt:u-1},n=Math.random()+1,r=t.minTimeout,Math.min(n*(void 0===r?500:r)*Math.pow(void 0===(i=t.factor)?2:i,t.attempt),void 0===(a=t.maxTimeout)?1/0:a))),this.future.push(e),!0)},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||!!this.queue.find(function(t){return t.id===e.id})||!!this.future.find(function(t){return t.id===e.id})},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.Q)},46804:function(e,t,n){"use strict";n.d(t,{$:function(){return h}});var r=n(42487),i=n(98552),o=n(61668),a=n(79677),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.j)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function u(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map(function(e){return new o._(e.event,e.id)})}function l(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function c(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||new Date().getTime()>o;if(a){s.setItem(r,JSON.stringify(new Date().getTime()+50)),t(),s.removeItem(r);return}!a&&n<3?setTimeout(function(){d(e,t,n+1)},50):console.error("Unable to retrieve lock")}var h=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),h=[],p={};return d(n,function(){try{h=u(o),p=l(a),c(o),c(a),i.queue=(0,r.ev)((0,r.ev)([],h,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},p),i.seen)}catch(e){console.error(e)}}),document.addEventListener("pagehide",function(){if(i.todo>0){var e=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{d(n,function(){var t,n,c,d;t=u(o),n=(0,r.ev)((0,r.ev)([],e,!0),t,!0).reduce(function(e,t){var n;return(0,r.pi)((0,r.pi)({},e),((n={})[t.id]=t,n))},{}),s.setItem(o,JSON.stringify(Object.values(n))),c=i.seen,d=l(a),s.setItem(a,JSON.stringify((0,r.pi)((0,r.pi)({},d),c)))})}catch(e){console.error(e)}}}),i}return(0,r.ZT)(t,e),t}(i.Z)},25030:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(64122);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},18767:function(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:function(){return s},sourceMiddlewarePlugin:function(){return u}});var r=n(42487),i=n(61668),o=n(37624),a=n(25030);function s(e,t,n){return(0,r.mG)(this,void 0,void 0,function(){var i,s,u,l,c;return(0,r.Jh)(this,function(d){switch(d.label){case 0:i=(0,a.D)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,u=n,d.label=1;case 1:if(!(s4){var o=r.substr(4);"campaign"===o&&(o="name"),e[o]=(0,a.a)(void 0===i?"":i)}return e},{}))),d=null!==(v=e.options.disableClientPersistence)&&void 0!==v&&v,h=o.Z.get("s:context.referrer"),p=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=(e=e.replace(/\?/g,"&")).split("&"),r=0;r0&&(t._metadata={failedInitializations:_});var S=[],E=[];for(var D in c){var C=c[D];"Segment.io"===D&&S.push(D),"bundled"===C.bundlingStatus&&S.push(D),"unbundled"===C.bundlingStatus&&E.push(D)}for(var j=0,O=(null==n?void 0:n.unbundledIntegrations)||[];jt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=c.proxy("context.userAgent"),d.timezone=c.proxy("context.timezone"),d.timestamp=c.field("timestamp"),d.channel=c.field("channel"),d.ip=c.proxy("context.ip"),d.userId=c.field("userId"),i.default(d)},60615:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(91285)),o=r(n(64554)),a=r(n(55870)),s=n(39512);function u(e,t){s.Facade.call(this,e,t)}t.Group=u,i.default(u,s.Facade);var l=u.prototype;l.action=function(){return"group"},l.type=l.action,l.groupId=s.Facade.field("groupId"),l.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},l.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();if(o.default(t))return t},l.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,delete t[r])}return t},l.name=s.Facade.proxy("traits.name"),l.industry=s.Facade.proxy("traits.industry"),l.employees=s.Facade.proxy("traits.employees"),l.properties=function(){return this.field("traits")||this.field("properties")||{}}},4705:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(39512),o=r(n(70325)),a=r(n(91285)),s=r(n(64554)),u=r(n(55870)),l=function(e){return e.trim()};function c(e,t){i.Facade.call(this,e,t)}t.Identify=c,a.default(c,i.Facade);var d=c.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();if(s.default(t))return t},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return u.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return u.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return l(e);var t=this.firstName(),n=this.lastName();if(t&&n)return l(t+" "+n)},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return l(e);var t=this.proxy("traits.name");if("string"==typeof t)return l(t).split(" ")[0]},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return l(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=l(t).indexOf(" ");if(-1!==n)return l(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?new Date().getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},64122:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&n())>>e/4).toString(16))}var u=n(7790),l=(0,a.R)(),c=["debug","info","warn","error","log","assert","trace"];function d(e){var t=(0,a.R)();if(!("console"in t))return e();var n=t.console,r={};c.forEach(e=>{var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)});try{return e()}finally{Object.keys(r).forEach(e=>{n[e]=r[e]})}}function h(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?c.forEach(n=>{t[n]=(...t)=>{e&&d(()=>{l.console[n](`Sentry Logger [${n}]:`,...t)})}}):c.forEach(e=>{t[e]=()=>void 0}),t}"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?r=(0,a.Y)("logger",h):r=h();var p=n(4266),f=Object.prototype.toString;function m(e){return"[object Object]"===f.call(e)}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}(i=o||(o={}))[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED";class v{__init(){this._state=o.PENDING}__init2(){this._handlers=[]}constructor(e){v.prototype.__init.call(this),v.prototype.__init2.call(this),v.prototype.__init3.call(this),v.prototype.__init4.call(this),v.prototype.__init5.call(this),v.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new v((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new v((t,n)=>{let r,i;return this.then(t=>{i=!1,r=t,e&&e()},t=>{i=!0,r=t,e&&e()}).then(()=>{if(i){n(r);return}t(r)})})}__init3(){this._resolve=e=>{this._setResult(o.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(o.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===o.PENDING){if(g(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state!==o.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===o.RESOLVED&&e[1](this._value),this._state===o.REJECTED&&e[2](this._value),e[0]=!0)})}}}}function y(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,u.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:s()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new b;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&y(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof b?t:this}return e instanceof b?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):m(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r={timestamp:(0,u.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...(0,a.Y)("globalEventProcessors",()=>[]),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,i=0){return new v((o,a)=>{var s=e[i];if(null===t||"function"!=typeof s)o(t);else{var u=s({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.id&&null===u&&r.log(`Event processor "${s.id}" dropped event`),g(u)?u.then(t=>this._notifyEventProcessors(e,t,n,i+1).then(o)).then(null,a):this._notifyEventProcessors(e,u,n,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}class w{__init(){this._stack=[{}]}constructor(e,t=new b,n=4){this._version=n,w.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version{i.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},o)}),n}captureMessage(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:s(),i=Error(e);return this._withClient((o,a)=>{o.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},a)}),r}captureEvent(e,t){var n=t&&t.event_id?t.event_id:s();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(e,{...t,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:n,client:r}=this.getStackTop();if(!n||!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(!(o<=0)){var a={timestamp:(0,u.yW)(),...e},s=i?d(()=>i(a,t)):a;null!==s&&n.addBreadcrumb(s,o)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){let{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=x(this);try{e(this)}finally{x(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();if(n){let e;e={},"ok"===n.status&&(e={status:"exited"}),y(n,e)}this._sendSessionUpdate(),t&&t.setSession()}startSession(e){let{scope:t,client:n}=this.getStackTop(),{release:r,environment:i}=n&&n.getOptions()||{},{userAgent:o}=(0,a.R)().navigator||{};var l,c,d,h=(l={release:r,environment:i,...t&&{user:t.getUser()},...o&&{userAgent:o},...e},c=(0,u.ph)(),d={sid:s(),init:!0,timestamp:c,started:c,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>{var e;return e=d,function e(t,n){if(m(t)){var r=n.get(t);if(void 0!==r)return r;var i={};for(var o of(n.set(t,i),Object.keys(t)))void 0!==t[o]&&(i[o]=e(t[o],n));return i}if(Array.isArray(t)){var r=n.get(t);if(void 0!==r)return r;var i=[];return n.set(t,i),t.forEach(t=>{i.push(e(t,n))}),i}return t}({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}},new Map)}},l&&y(d,l),d);if(t){var p=t.getSession&&t.getSession();p&&"ok"===p.status&&y(p,{status:"exited"}),this.endSession(),t.setSession(h)}return h}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){let{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=k().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function k(){var e=(0,a.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function x(e){var t=k(),n=S(t);return E(t,e),n}function _(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function S(e){return(0,a.Y)("hub",()=>new w,e)}function E(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}function D(e,t){var n;return(((!_(n=k())||S(n).isOlderThan(4))&&E(n,new w),(0,p.KV)())?function(e){try{var t=k().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return S(e);if(!_(n)||S(n).isOlderThan(4)){var r=S(e).getStackTop();E(n,new w(r.client,b.clone(r.scope)))}return S(n)}catch(t){return S(e)}}(n):S(n)).captureException(e,{captureContext:t})}},65907:function(e,t,n){"use strict";n.d(t,{R:function(){return o},Y:function(){return a}});var r=n(4266),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},4266:function(e,t,n){"use strict";n.d(t,{l$:function(){return o},KV:function(){return i}}),e=n.hmd(e);var r=n(34406);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(e,t){return e.require(t)}},7790:function(e,t,n){"use strict";n.d(t,{ph:function(){return l},yW:function(){return u}});var r=n(65907),i=n(4266);e=n.hmd(e);var o={nowSeconds:()=>Date.now()/1e3},a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),l=s.nowSeconds.bind(s);(()=>{let{performance:e}=(0,r.R)();if(e&&e.now){var t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+t-n):36e5;if(i<36e5||a<36e5)return i<=a?e.timeOrigin:void 0}})()},39961:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError(`Expected a number, got ${typeof e}`);let t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return`${(t?"-":"")+e} B`;let r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));let i=n[r];return e>=10||e%1==0?`${(t?"-":"")+e.toFixed(0)} ${i}`:`${(t?"-":"")+e.toFixed(1)} ${i}`}},11987:function(e){e.exports=function(e){if("number"!=typeof e||isNaN(e))throw TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var i=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}},27545:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(2784),i=n(72779),o=n.n(i),a=n(59309),s=n(63739),u=n(32718),l=n.n(u),c=n(30733),d=n.n(c),h="__react_svg_text_measurement_id",p=d()(function(e,t){try{var n=document.getElementById(h);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",h),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)}),f=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function m(e){return"number"==typeof e}function g(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}var v=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function y(){return(y=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v)),q=U.x,$=void 0===q?0:q,H=U.fontSize,W=(n=void 0===(t=e.verticalAnchor)?"end":t,o=void 0!==(i=e.scaleToFit)&&i,a=e.angle,s=e.width,c=void 0===(u=e.lineHeight)?"1em":u,h=void 0===(d=e.capHeight)?"0.71em":d,w=e.children,k=e.style,S=void 0===(_=(x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,f)).x)?0:_,D=void 0===(E=x.y)?0:E,C=!g(S)||!g(D),O=(j=(0,r.useMemo)(function(){return{wordsWithWidth:(null==w?[]:w.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:p(e,k)||0}}),spaceWidth:p("\xa0",k)||0}},[w,k])).wordsWithWidth,T=j.spaceWidth,A=(0,r.useMemo)(function(){return C?[]:s||o?O.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==s||o||(i.width||0)+r+T0){var t=A[0].width||1,n="shrink-only"===o?Math.min(s/t,1):s/t,r=S-n*S,i=D-n*D;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return a&&e.push("rotate("+a+", "+S+", "+D+")"),e.length>0?e.join(" "):""},[C,S,D,s,o,A,a]),{wordsByLines:A,startDy:P,transform:R}),V=W.wordsByLines,G=W.startDy,Y=W.transform;return r.createElement("svg",{ref:I,x:void 0===M?0:M,y:void 0===F?0:F,fontSize:H,style:b},V.length>0?r.createElement("text",y({ref:L,transform:Y},U,{textAnchor:void 0===N?"start":N}),V.map(function(e,t){return r.createElement("tspan",{key:t,x:$,dy:0===t?G:z},e.words.join(" "))})):null)}var k=n(5544);function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j),M=null!=b?b:"tickFormat"in y?y.tickFormat():E,F=m===k.Z.left,N=m===k.Z.top,I=N||m===k.Z.bottom,L=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(y),B=F||N?-1:1,z=y.range(),U=C({x:Number(z[0])+.5-v,y:0},I),q=C({x:Number(z[z.length-1])+.5+v,y:0},I),$=(null!=A?A:"ticks"in y?y.ticks(p):y.domain().filter(function(e,t,n){return null==p||n.length<=p||t%Math.round((n.length-1)/p)==0})).filter(function(e){return!c||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),H=$.map(function(e){var t=e.value,n=e.index,r=function(e){if(("function"==typeof e||"object"==typeof e&&e)&&"valueOf"in e){var t=e.valueOf();if("number"==typeof t)return t}return e}(L(t));return{value:t,index:n,from:C({x:r,y:0},I),to:C({x:r,y:T*B},I),formattedValue:M(t,n,$)}});return r.createElement(a.Z,{className:o()("visx-axis",n),top:void 0===P?0:P,left:void 0===d?0:d},(void 0===t?function(e){var t=e.axisFromPoint,n=e.axisLineClassName,i=e.axisToPoint,u=e.hideAxisLine,l=e.hideTicks,c=e.horizontal,d=e.label,h=void 0===d?"":d,p=e.labelClassName,f=e.labelOffset,m=e.labelProps,g=void 0===m?S:m,v=e.orientation,y=void 0===v?k.Z.bottom:v,b=e.scale,E=e.stroke,D=e.strokeDasharray,C=e.strokeWidth,j=void 0===C?1:C,O=e.tickClassName,T=e.tickComponent,A=e.tickLineProps,P=e.tickLabelProps,R=void 0===P?function(){return S}:P,M=e.tickLength,F=e.tickStroke,N=e.tickTransform,I=e.ticks,L=e.ticksComponent,B=I.map(function(e){return R(e.value,e.index,I)}),z=Math.max.apply(Math,[10].concat(B.map(function(e){return"number"==typeof e.fontSize?e.fontSize:0})));return r.createElement(r.Fragment,null,(void 0===L?function(e){var t=e.hideTicks,n=e.horizontal,i=e.orientation,u=e.tickClassName,l=e.tickComponent,c=e.tickLabelProps,d=e.tickStroke,h=void 0===d?"#222":d,p=e.tickTransform,f=e.ticks,m=e.strokeWidth,g=e.tickLineProps;return f.map(function(e){var d,f=e.value,v=e.index,y=e.from,b=e.to,_=e.formattedValue,S=null!=(d=c[v])?d:{},E=Math.max(10,"number"==typeof S.fontSize&&S.fontSize||0),D=b.y+(n&&i!==k.Z.top?E:0);return r.createElement(a.Z,{key:"visx-tick-"+f+"-"+v,className:o()("visx-axis-tick",u),transform:p},!t&&r.createElement(s.Z,x({from:y,to:b,stroke:h,strokeWidth:m,strokeLinecap:"square"},g)),l?l(x({},S,{x:b.x,y:D,formattedValue:_})):r.createElement(w,x({x:b.x,y:D},S),_))})}:L)({hideTicks:l,horizontal:c,orientation:y,scale:b,tickClassName:O,tickComponent:T,tickLabelProps:B,tickStroke:void 0===F?"#222":F,tickTransform:N,ticks:I,strokeWidth:j,tickLineProps:A}),!u&&r.createElement(s.Z,{className:o()("visx-axis-line",n),from:t,to:i,stroke:void 0===E?"#222":E,strokeWidth:j,strokeDasharray:D}),h&&r.createElement(w,_({className:o()("visx-axis-label",p)},function(e){var t,n,r,i=e.labelOffset,o=e.labelProps,a=e.orientation,s=e.range,u=e.tickLabelFontSize,l=e.tickLength,c=a===k.Z.left||a===k.Z.top?-1:1;if(a===k.Z.top||a===k.Z.bottom){var d=a===k.Z.bottom&&"number"==typeof o.fontSize?o.fontSize:0;t=(Number(s[0])+Number(s[s.length-1]))/2,n=c*(l+i+u+d)}else t=(Number(s[0])+Number(s[s.length-1]))/2*c,n=-(l+i),r="rotate("+90*c+")";return{x:t,y:n,transform:r}}({labelOffset:void 0===f?14:f,labelProps:g,orientation:y,range:b.range(),tickLabelFontSize:z,tickLength:void 0===M?8:M}),g),h))}:t)(O({},R,{axisFromPoint:U,axisToPoint:q,hideAxisLine:void 0!==i&&i,hideTicks:void 0!==u&&u,hideZero:c,horizontal:I,numTicks:p,orientation:m,rangePadding:v,scale:y,tickFormat:M,tickLength:T,tickPosition:L,tickSign:B,ticks:H})))}},70258:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(2784),i=n(72779),o=n.n(i),a=n(27545),s=n(5544),u=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,u);return r.createElement(a.Z,l({axisClassName:o()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:s.Z.bottom,tickLabelProps:void 0===i?c:i,tickLength:void 0===d?8:d},h))}},6802:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(2784),i=n(72779),o=n.n(i),a=n(27545),s=n(5544),u=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,u);return r.createElement(a.Z,l({axisClassName:o()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:s.Z.left,tickLabelProps:void 0===i?c:i,tickLength:void 0===d?8:d},h))}},5544:function(e,t){"use strict";t.Z={top:"top",left:"left",right:"right",bottom:"bottom"}},80237:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067);function i(){return(i=Object.assign||function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:i({},o);if(e&&"clientX"in e)return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:i({},o)}(t),a=e&&(e instanceof SVGElement||"ownerSVGElement"in e)?e.ownerSVGElement:e,s=a&&"getScreenCTM"in a?a.getScreenCTM():null;if(a&&"createSVGPoint"in a&&s){var u=a.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(s.inverse()),new r.Z({x:u.x,y:u.y})}var l=e.getBoundingClientRect();return new r.Z({x:n.x-l.left-e.clientLeft,y:n.y-l.top-e.clientTop})}function s(e,t){if(e&&e instanceof Element&&t)return a(e,t);if(e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)){var n=e.target;if(n)return a(n,e)}return null}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),u=["top","left","transform","className","children","innerRef"];function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,u);return o.createElement("g",l({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return i}});var i=function(){function e(e){var t=e.x,n=e.y;r(this,"x",0),r(this,"y",0),this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},2574:function(e,t,n){"use strict";n.d(t,{Z:function(){return et}});var r,i,o,a=n(13980),s=n.n(a),u=n(54073),l=n.n(u),c=n(2784),d=[],h="ResizeObserver loop completed with undelivered notifications.",p=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:h}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=h),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var f=function(e){return Object.freeze(e)},m=function(e,t){this.inlineSize=e,this.blockSize=t,f(this)},g=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,f(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),v=function(e){return e instanceof SVGElement&&"getBBox"in e},y=function(e){if(v(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},b=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},w=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},k="undefined"!=typeof window?window:{},x=new WeakMap,_=/auto|scroll/,S=/^tb|vertical/,E=/msie|trident/i.test(k.navigator&&k.navigator.userAgent),D=function(e){return parseFloat(e||"0")},C=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new m((n?t:e)||0,(n?e:t)||0)},j=f({devicePixelContentBoxSize:C(),borderBoxSize:C(),contentBoxSize:C(),contentRect:new g(0,0,0,0)}),O=function(e,t){if(void 0===t&&(t=!1),x.has(e)&&!t)return x.get(e);if(y(e))return x.set(e,j),j;var n=getComputedStyle(e),r=v(e)&&e.ownerSVGElement&&e.getBBox(),i=!E&&"border-box"===n.boxSizing,o=S.test(n.writingMode||""),a=!r&&_.test(n.overflowY||""),s=!r&&_.test(n.overflowX||""),u=r?0:D(n.paddingTop),l=r?0:D(n.paddingRight),c=r?0:D(n.paddingBottom),d=r?0:D(n.paddingLeft),h=r?0:D(n.borderTopWidth),p=r?0:D(n.borderRightWidth),m=r?0:D(n.borderBottomWidth),b=r?0:D(n.borderLeftWidth),w=d+l,k=u+c,O=b+p,T=h+m,A=s?e.offsetHeight-T-e.clientHeight:0,P=a?e.offsetWidth-O-e.clientWidth:0,R=r?r.width:D(n.width)-(i?w+O:0)-P,M=r?r.height:D(n.height)-(i?k+T:0)-A,F=R+w+P+O,N=M+k+A+T,I=f({devicePixelContentBoxSize:C(Math.round(R*devicePixelRatio),Math.round(M*devicePixelRatio),o),borderBoxSize:C(F,N,o),contentBoxSize:C(R,M,o),contentRect:new g(d,u,R,M)});return x.set(e,I),I},T=function(e,t,n){var r=O(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},A=function(e){var t=O(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=f([t.borderBoxSize]),this.contentBoxSize=f([t.contentBoxSize]),this.devicePixelContentBoxSize=f([t.devicePixelContentBoxSize])},P=function(e){if(y(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},R=function(){var e=1/0,t=[];d.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new A(t.target),i=P(t.target);r.push(n),t.lastReportedSize=T(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},F=function(){var e=0;for(M(0);d.some(function(e){return e.activeTargets.length>0});)M(e=R());return d.some(function(e){return e.skippedTargets.length>0})&&p(),e>0},N=[],I=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return N.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}N.push(e),o()},L=function(e){I(function(){requestAnimationFrame(e)})},B=0,z={attributes:!0,characterData:!0,childList:!0,subtree:!0},U=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],q=function(e){return void 0===e&&(e=0),Date.now()+e},$=!1,H=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!$){$=!0;var n=q(e);L(function(){var r=!1;try{r=F()}finally{if($=!1,e=n-q(),!B)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,z)};document.body?t():k.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),U.forEach(function(t){return k.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),U.forEach(function(t){return k.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),W=function(e){!B&&e>0&&H.start(),(B+=e)||H.stop()},V=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=T(this.target,this.observedBox,!0);return v(e=this.target)||w(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),G=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Y=new WeakMap,Z=function(e,t){for(var n=0;nZ(r.observationTargets,t)&&(i&&d.push(r),r.observationTargets.push(new V(t,n&&n.box)),W(1),H.schedule())},e.unobserve=function(e,t){var n=Y.get(e),r=Z(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&d.splice(d.indexOf(n),1),n.observationTargets.splice(r,1),W(-1))},e.disconnect=function(e){var t=this,n=Y.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),J=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");K.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!b(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");K.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!b(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");K.unobserve(this,e)},e.prototype.disconnect=function(){K.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),X=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall"];function Q(){return(Q=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),p=(0,c.useRef)(null),f=(0,c.useRef)(0),m=(0,c.useState)({width:0,height:0,top:0,left:0}),g=m[0],v=m[1],y=(0,c.useMemo)(function(){var e=Array.isArray(a)?a:[a];return l()(function(t){v(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},i,{leading:d})},[i,d,a]);return(0,c.useEffect)(function(){var e=new J(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;f.current=window.requestAnimationFrame(function(){y({width:i,height:o,top:r,left:n})})})});return p.current&&e.observe(p.current),function(){window.cancelAnimationFrame(f.current),e.disconnect(),null!=y&&y.cancel&&y.cancel()}},[y]),c.createElement("div",Q({style:void 0===s?{width:"100%",height:"100%"}:s,ref:p,className:t},h),n(Q({},g,{ref:p.current,resize:y})))}et.propTypes={className:s().string,debounceTime:s().number,enableDebounceLeadingCall:s().bool,ignoreDimensions:s().oneOfType([s().any,s().arrayOf(s().any)]),children:s().func.isRequired}},72108:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function o(){}n.d(t,{Z:function(){return eJ}});var a="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,c=RegExp("^rgb\\("+[a,a,a]+"\\)$"),d=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[a,a,a,s]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),f=RegExp("^hsl\\("+[s,u,u]+"\\)$"),m=RegExp("^hsla\\("+[s,u,u,s]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function v(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new S(t[1],t[2],t[3],1):(t=d.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?k(t[1],t[2],t[3],t[4]):(t=p.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?j(t[1],t[2]/100,t[3]/100,1):(t=m.exec(e))?j(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function k(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function x(e){return(e instanceof o||(e=b(e)),e)?new S((e=e.rgb()).r,e.g,e.b,e.opacity):new S}function _(e,t,n,r){return 1==arguments.length?x(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function E(){return"#"+C(this.r)+C(this.g)+C(this.b)}function D(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function j(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new A(e,t,n,r)}function O(e){if(e instanceof A)return new A(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=b(e)),!e)return new A;if(e instanceof A)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,u=a-i,l=(a+i)/2;return u?(s=t===a?(n-r)/u+(n0&&l<1?0:s,new A(s,u,l,e.opacity)}function T(e,t,n,r){return 1==arguments.length?O(e):new A(e,t,n,null==r?1:r)}function A(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function P(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}r(o,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:v,formatHex:v,formatHsl:function(){return O(this).formatHsl()},formatRgb:y,toString:y}),r(S,_,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:D,toString:D})),r(A,T,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new A(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new A(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(P(e>=240?e-240:e+120,i,r),P(e,i,r),P(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var R=Math.PI/180,M=180/Math.PI,F=4/29,N=6/29,I=6/29*3*(6/29),L=6/29*(6/29)*(6/29);function B(e){if(e instanceof U)return new U(e.l,e.a,e.b,e.opacity);if(e instanceof G)return Y(e);e instanceof S||(e=x(e));var t,n,r=W(e.r),i=W(e.g),o=W(e.b),a=q((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=q((.4360747*r+.3850649*i+.1430804*o)/.96422),n=q((.0139322*r+.0971045*i+.7141733*o)/.82521)),new U(116*a-16,500*(t-a),200*(a-n),e.opacity)}function z(e,t,n,r){return 1==arguments.length?B(e):new U(e,t,n,null==r?1:r)}function U(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function q(e){return e>L?Math.pow(e,1/3):e/I+F}function $(e){return e>N?e*e*e:I*(e-F)}function H(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function W(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function V(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof G)return new G(e.h,e.c,e.l,e.opacity);if(e instanceof U||(e=B(e)),0===e.a&&0===e.b)return new G(NaN,0180||n<-180?n-360*Math.round(n/360):n):Z(isNaN(e)?t:e)}function X(e,t){var n=t-e;return n?K(e,n):Z(isNaN(e)?t:e)}function Q(e){return function(t,n){var r=e((t=V(t)).h,(n=V(n)).h),i=X(t.c,n.c),o=X(t.l,n.l),a=X(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}r(U,z,i(o,{brighter:function(e){return new U(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new U(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new S(H(3.1338561*(t=.96422*$(t))-1.6168667*(e=1*$(e))-.4906146*(n=.82521*$(n))),H(-.9787684*t+1.9161415*e+.033454*n),H(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),r(G,V,i(o,{brighter:function(e){return new G(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new G(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Y(this).rgb()}}));var ee=Q(J),et=Q(X);function en(e){return function(t,n){var r=e((t=T(t)).h,(n=T(n)).h),i=X(t.s,n.s),o=X(t.l,n.l),a=X(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var er=en(J),ei=en(X),eo=-1.78277*.29227-.1347134789;function ea(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof es)return new es(e.h,e.s,e.l,e.opacity);e instanceof S||(e=x(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(eo*r+-1.7884503806*t-3.5172982438*n)/(eo+-1.7884503806-3.5172982438),o=r-i,a=-((1.97294*(n-i)- -.29227*o)/.90649),s=Math.sqrt(a*a+o*o)/(1.97294*i*(1-i)),u=s?Math.atan2(a,o)*M-120:NaN;return new es(u<0?u+360:u,s,i,e.opacity)}(e):new es(e,t,n,null==r?1:r)}function es(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function eu(e){return function t(n){function r(t,r){var i=e((t=ea(t)).h,(r=ea(r)).h),o=X(t.s,r.s),a=X(t.l,r.l),s=X(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}r(es,ea,i(o,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new es(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new es(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*R,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new S(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(-.29227*r+-.90649*i)),255*(t+1.97294*r*n),this.opacity)}}));var el=eu(J),ec=eu(X);function ed(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}var eh=function e(t){var n,r=1==(n=+(n=t))?X:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):Z(isNaN(e)?t:e)};function i(e,t){var n=r((e=_(e)).r,(t=_(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=X(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function ep(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r0))return s;do s.push(a=new Date(+n)),t(n,o),e(n);while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return em.setTime(+t),eg.setTime(+r),e(em),e(eg),Math.floor(n(em,eg))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var ey=ev(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);ey.range;var eb=ev(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});eb.range;var ew=ev(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});ew.range;var ek=ev(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});ek.range;var ex=ev(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});function e_(e){return ev(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5})}ex.range;var eS=e_(0),eE=e_(1),eD=e_(2),eC=e_(3),ej=e_(4),eO=e_(5),eT=e_(6);eS.range,eE.range,eD.range,eC.range,ej.range,eO.range,eT.range;var eA=ev(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});eA.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ev(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},eA.range;var eP=ev(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1});eP.range;var eR=ev(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});eR.range;var eM=ev(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});eM.range;var eF=ev(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});function eN(e){return ev(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}eF.range;var eI=eN(0),eL=eN(1),eB=eN(2),ez=eN(3),eU=eN(4),eq=eN(5),e$=eN(6);eI.range,eL.range,eB.range,ez.range,eU.range,eq.range,e$.range;var eH=ev(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});eH.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ev(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},eH.range;var eW=new Date(Date.UTC(2020,1,2,3,4,5)),eV={day:ey,hour:eb,minute:ew,month:ek,second:ex,week:eS,year:eA},eG={day:eP,hour:eR,minute:eM,month:eF,second:ex,week:eI,year:eH};function eY(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var eZ=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],eK={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r="2020-02-02 03:04"===e.tickFormat(1,"%Y-%m-%d %H:%M")(eW);if("string"==typeof n)e.nice(r?eG[n]:eV[n]);else{var i=n.interval,o=n.step,a=(r?eG[i]:eV[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0?(o>=s?10:o>=u?5:o>=l?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=s?10:o>=u?5:o>=l?2:1)}function d(e,t){return et?1:e>=t?0:NaN}function h(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>d(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let p=h(d),f=p.right;function m(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function g(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function v(){}p.left,h(function(e){return null===e?NaN:+e}).center;var y="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k=/^#([0-9a-f]{3,8})$/,x=RegExp("^rgb\\("+[y,y,y]+"\\)$"),_=RegExp("^rgb\\("+[w,w,w]+"\\)$"),S=RegExp("^rgba\\("+[y,y,y,b]+"\\)$"),E=RegExp("^rgba\\("+[w,w,w,b]+"\\)$"),D=RegExp("^hsl\\("+[b,w,w]+"\\)$"),C=RegExp("^hsla\\("+[b,w,w,b]+"\\)$"),j={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function O(){return this.rgb().formatHex()}function T(){return this.rgb().formatRgb()}function A(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=k.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?P(t):3===n?new F(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?R(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?R(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=x.exec(e))?new F(t[1],t[2],t[3],1):(t=_.exec(e))?new F(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=S.exec(e))?R(t[1],t[2],t[3],t[4]):(t=E.exec(e))?R(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=D.exec(e))?B(t[1],t[2]/100,t[3]/100,1):(t=C.exec(e))?B(t[1],t[2]/100,t[3]/100,t[4]):j.hasOwnProperty(e)?P(j[e]):"transparent"===e?new F(NaN,NaN,NaN,0):null}function P(e){return new F(e>>16&255,e>>8&255,255&e,1)}function R(e,t,n,r){return r<=0&&(e=t=n=NaN),new F(e,t,n,r)}function M(e,t,n,r){var i;return 1==arguments.length?((i=e)instanceof v||(i=A(i)),i)?new F((i=i.rgb()).r,i.g,i.b,i.opacity):new F:new F(e,t,n,null==r?1:r)}function F(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function N(){return"#"+L(this.r)+L(this.g)+L(this.b)}function I(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function L(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function B(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new U(e,t,n,r)}function z(e){if(e instanceof U)return new U(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=A(e)),!e)return new U;if(e instanceof U)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+(n0&&u<1?0:a,new U(a,s,u,e.opacity)}function U(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function q(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function $(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}m(v,A,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:O,formatHex:O,formatHsl:function(){return z(this).formatHsl()},formatRgb:T,toString:T}),m(F,M,g(v,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new F(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new F(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:N,formatHex:N,formatRgb:I,toString:I})),m(U,function(e,t,n,r){return 1==arguments.length?z(e):new U(e,t,n,null==r?1:r)},g(v,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new U(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new U(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new F(q(e>=240?e-240:e+120,i,r),q(e,i,r),q(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var H=e=>()=>e;function W(e,t){var n=t-e;return n?function(t){return e+t*n}:H(isNaN(e)?t:e)}var V=function e(t){var n,r=1==(n=+(n=t))?W:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):H(isNaN(e)?t:e)};function i(e,t){var n=r((e=M(e)).r,(t=M(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=W(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function G(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ea(e){var t;if(!(t=eo.exec(e)))throw Error("invalid format: "+e);return new es({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function es(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function eu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function el(e){return(e=eu(Math.abs(e)))?e[1]:NaN}function ec(e,t){var n=eu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}ea.prototype=es.prototype,es.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ed={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ec(100*e,t),r:ec,s:function(e,t){var n=eu(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+eu(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function eh(e){return e}var ep=Array.prototype.map,ef=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?eh:(t=ep.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",u=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?eh:(i=ep.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),c=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"−":e.minus+"",h=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=ea(e)).fill,n=e.align,i=e.sign,p=e.symbol,f=e.zero,m=e.width,g=e.comma,v=e.precision,y=e.trim,b=e.type;"n"===b?(g=!0,b="g"):ed[b]||(void 0===v&&(v=12),y=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var w="$"===p?a:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",k="$"===p?s:/[%p]/.test(b)?c:"",x=ed[b],_=/[defgprs%]/.test(b);function S(e){var a,s,c,p=w,S=k;if("c"===b)S=x(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?h:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==i&&(E=!1),p=(E?"("===i?i:d:"-"===i||"("===i?"":i)+p,S=("s"===b?ef[8+r/3]:"")+S+(E&&"("===i?")":""),_){for(a=-1,s=e.length;++a(c=e.charCodeAt(a))||c>57){S=(46===c?u+e.slice(a+1):e.slice(a))+S,e=e.slice(0,a);break}}}g&&!f&&(e=o(e,1/0));var D=p.length+e.length+S.length,C=D>1)+p+e+S+C.slice(D);break;default:e=C+p+e+S}return l(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:p,formatPrefix:function(e,t){var n=p(((e=ea(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(el(t)/3))),i=Math.pow(10,-r),o=ef[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix;var em=(0,n(72108).Z)("domain","range","reverse","clamp","interpolate","nice","round","zero");function eg(e){return em(function e(){var t,n=(function(){var e,t,n,r,i,o,a=Q,s=Q,u=function e(t,n){var r,i,o=typeof n;return null==n||"boolean"===o?H(n):("number"===o?Y:"string"===o?(i=A(n))?(n=i,V):function(e,t){var n,r,i,o,a,s=Z.lastIndex=K.lastIndex=0,u=-1,l=[],c=[];for(e+="",t+="";(i=Z.exec(e))&&(o=K.exec(t));)(a=o.index)>s&&(a=t.slice(s,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,c.push({i:u,x:Y(i,o)})),s=K.lastIndex;return st&&(n=e,e=t,t=n),l=function(n){return Math.max(e,Math.min(t,n))}),r=u>2?er:en,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,u)))(e(l(t)))}return d.invert=function(n){return l(t((o||(o=r(s,a.map(e),Y)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,X),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),u=J,c()},d.clamp=function(e){return arguments.length?(l=!!e||ee,c()):l!==ee},d.interpolate=function(e){return arguments.length?(u=e,c()):u},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}})()(ee,ee);return n.copy=function(){return e().domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())},ei.o.apply(n,arguments),t=n.domain,n.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++st&&--r,o=Array(i=r-n+1);++s=s?d*=10:h>=u?d*=5:h>=l&&(d*=2),t0;){if((i=c(u,l,e))===r)return o[a]=u,o[s]=l,t(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else if(i<0)u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i;else break;r=i}return n},n}(),e)}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),B=(n=(t={x:S,y:E,width:D,height:C,radius:j,all:void 0!==O&&O,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==R&&R,topLeft:void 0!==M&&M,topRight:void 0!==F&&F,bottomLeft:void 0!==N&&N,bottomRight:void 0!==I&&I}).all,i=t.bottom,u=t.bottomLeft,l=t.bottomRight,c=t.height,d=t.left,h=t.radius,p=t.right,f=t.top,m=t.topLeft,g=t.topRight,v=t.width,y=t.x,b=t.y,g=n||f||p||g,l=n||i||p||l,u=n||i||d||u,m=n||f||d||m,w=2*(h=Math.max(1,Math.min(h,Math.min(v,c)/2))),("M"+(y+h)+","+b+" h"+(v-w)+"\n "+(g?"a"+h+","+h+" 0 0 1 "+h+","+h:"h"+h+"v"+h)+"\n v"+(c-w)+"\n "+(l?"a"+h+","+h+" 0 0 1 "+-h+","+h:"v"+h+"h"+-h)+"\n h"+(w-v)+"\n "+(u?"a"+h+","+h+" 0 0 1 "+-h+","+-h:"h"+-h+"v"+-h)+"\n v"+(w-c)+"\n "+(m?"a"+h+","+h+" 0 0 1 "+h+","+-h:"v"+-h+"h"+h)+"\nz").split("\n").join(""));return k?r.createElement(r.Fragment,null,k({path:B})):r.createElement("path",s({ref:_,className:o()("visx-bar-rounded",x),d:B},L))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),p=n.x===u.x||n.y===u.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:u.x,y2:u.y,fill:void 0===l?"transparent":l,shapeRendering:p?"crispEdges":"auto"},h))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=n(30401),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:i,y:l,defined:void 0===f?function(){return!0}:f,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:p,className:o()("visx-linepath",d),d:g(void 0===n?[]:n)||"",fill:void 0===c?"transparent":c,strokeLinecap:"round"},m))}},30401:function(e,t,n){"use strict";n.d(t,{Nb:function(){return a},jv:function(){return s},ve:function(){return u}});var r=n(38764),i=n(79767),o=n(69619);function a(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,u=t.padAngle,l=t.padRadius,c=(0,r.Z)();return null!=n&&(0,c.innerRadius)(n),null!=i&&(0,c.outerRadius)(i),null!=o&&(0,c.cornerRadius)(o),null!=a&&(0,c.startAngle)(a),null!=s&&(0,c.endAngle)(s),null!=u&&(0,c.padAngle)(u),null!=l&&(0,c.padRadius)(l),c}function s(e){var t=void 0===e?{}:e,n=t.x,r=t.y,o=t.defined,a=t.curve,s=(0,i.Z)();return n&&(0,s.x)(n),r&&(0,s.y)(r),o&&s.defined(o),a&&s.curve(a),s}function u(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,a=t.value,s=t.sort,u=t.sortValues,l=(0,o.Z)();return null===s?l.sort(s):null!=s&&l.sort(s),null===u?l.sortValues(u):null!=u&&l.sortValues(u),null!=a&&l.value(a),null!=i&&(0,l.padAngle)(i),null!=n&&(0,l.startAngle)(n),null!=r&&(0,l.endAngle)(r),l}},82756:function(e,t,n){"use strict";t.Z=function(e){var t=e.className,n=e.top,u=e.left,c=e.data,d=e.centroid,h=e.innerRadius,p=e.outerRadius,f=e.cornerRadius,m=e.startAngle,g=e.endAngle,v=e.padAngle,y=e.padRadius,b=e.pieSort,w=e.pieSortValues,k=e.pieValue,x=e.children,_=e.fill,S=void 0===_?"":_,E=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),D=(0,a.arc)({innerRadius:void 0===h?0:h,outerRadius:p,cornerRadius:f,padRadius:y}),C=(0,a.pie)({startAngle:m,endAngle:g,padAngle:v,value:k,sort:b,sortValues:w}),j=C(void 0===c?[]:c);return x?r.default.createElement(r.default.Fragment,null,x({arcs:j,path:D,pie:C})):r.default.createElement(o.Group,{className:"visx-pie-arcs-group",top:n,left:u},j.map(function(e,n){return r.default.createElement("g",{key:"pie-arc-"+n},r.default.createElement("path",l({className:(0,i.default)("visx-pie-arc",t),d:D(e)||"",fill:null==S||"string"==typeof S?S:S(e)},E)),null==d?void 0:d(D.centroid(e),e))}))};var r=u(n(2784)),i=u(n(72779)),o=n(71602),a=n(15601),s=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,c)),q=U.x,$=void 0===q?0:q,H=U.fontSize,W=(n=void 0===(t=e.verticalAnchor)?"end":t,p=void 0!==(i=e.scaleToFit)&&i,f=e.angle,m=e.width,v=void 0===(g=e.lineHeight)?"1em":g,b=void 0===(y=e.capHeight)?"0.71em":y,w=e.children,k=e.style,S=void 0===(_=(x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s)).x)?0:_,D=void 0===(E=x.y)?0:E,C=!l(S)||!l(D),O=(j=(0,r.useMemo)(function(){return{wordsWithWidth:(null==w?[]:w.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,k)||0}}),spaceWidth:(0,a.Z)("\xa0",k)||0}},[w,k])).wordsWithWidth,T=j.spaceWidth,A=(0,r.useMemo)(function(){return C?[]:m||p?O.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==m||p||(i.width||0)+r+T0){var t=A[0].width||1,n="shrink-only"===p?Math.min(m/t,1):m/t,r=S-n*S,i=D-n*D;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return f&&e.push("rotate("+f+", "+S+", "+D+")"),e.length>0?e.join(" "):""},[C,S,D,m,p,A,f]),{wordsByLines:A,startDy:P,transform:R}),V=W.wordsByLines,G=W.startDy,Y=W.transform;return r.createElement("svg",{ref:I,x:void 0===M?0:M,y:void 0===F?0:F,fontSize:H,style:h},V.length>0?r.createElement("text",d({ref:L,transform:Y},U,{textAnchor:void 0===N?"start":N}),V.map(function(e,t){return r.createElement("tspan",{key:t,x:$,dy:0===t?G:z},e.words.join(" "))})):null)}},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},96492:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2784),i=["tooltipOpen"];function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,i);return o({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[a]),u=(0,r.useCallback)(function(){return a({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[a]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:a,showTooltip:s,hideTooltip:u}}},15448:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r,i,o,a=n(2784),s=n(28316);function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v);return a.createElement("div",y({className:g()("visx-tooltip",t),style:y({top:null==n||null==u?n:n+u,left:null==r||null==o?r:r+o},void 0!==p&&p&&{position:"absolute"},!(void 0!==h&&h)&&c)},f),d)}w.propTypes={children:f().node,className:f().string,left:f().number,offsetLeft:f().number,offsetTop:f().number,top:f().number,applyPositionStyle:f().bool,unstyled:f().bool};var k=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled"];function x(){return(x=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k);if(c&&l){var g=void 0===r?0:r,v=void 0===p?0:p,y=!1,_=!1;if(l.width){var S=g+o+c.width-l.width,E=c.width-g-o;y=S>0&&S>E}else{var D=g+o+c.width-window.innerWidth,C=c.width-g-o;y=D>0&&D>C}if(l.height){var j=v+u+c.height-l.height,O=c.height-v-u;_=j>0&&j>O}else _=v+u+c.height>window.innerHeight;g=y?g-c.width-o:g+o,v=_?v-c.height-u:v+u,t="translate("+(g=Math.round(g))+"px, "+(v=Math.round(v))+"px)"}return a.createElement(w,x({style:x({left:0,top:0,transform:t},!(void 0!==f&&f)&&h)},m),n)},o=i=function(e){function t(t){var n;return d(l(n=e.call(this,t)||this),"node",void 0),n.state={rect:void 0,parentRect:void 0},n.getRects=n.getRects.bind(l(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,c(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this;this.node=s.findDOMNode(this),this.setState(function(){return e.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():h,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():h}},n.render=function(){return a.createElement(r,u({getRects:this.getRects},this.state,this.props))},t}(a.PureComponent),d(i,"displayName","withBoundingRects("+(r.displayName||"")+")"),o)},62139:function(e,t,n){"use strict";n.d(t,{g7:function(){return u}});var r=null,i={},o=1,a="@wry/context:Slot",s=Array,u=s[a]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=r;r={parent:s,slots:a};try{return t.apply(i,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var i=r;try{return r=null,e.apply(n,t)}finally{r=i}},e}();try{Object.defineProperty(s,a,{value:s[a]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();u.bind,u.noContext},38229:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=Function.prototype.toString,s=new Map;function u(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t);if(r!==i.call(n))return!1;switch(r){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":if(h(t,n))return!0;var s=l(t),u=l(n),c=s.length;if(c!==u.length)break;for(var p=0;p=0)||_.indexOf(d,x)!==x}return!1}(e,t)}finally{s.clear()}}function l(e){return Object.keys(e).filter(c,e)}function c(e){return void 0!==this[e]}var d="{ [native code] }";function h(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},3985:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=r),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t=0&&l>0){for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())=0?u:l;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},48834:function(e,t,n){"use strict";var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|f(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(O(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(O(e,ArrayBuffer)||e&&O(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(O(e,SharedArrayBuffer)||e&&O(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|p(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),a(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||O(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:D(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;h239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function x(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function _(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function S(e,t,n,r,o){return t=+t,n>>>=0,o||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(l(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),O(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=f,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(O(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,u=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,l,c,d,h=this.length-t;if((void 0===n||n>h)&&(n=h),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||w(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;k(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;k(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);k(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return _(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return _(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return S(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return S(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function O(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},62680:function(e,t,n){"use strict";var r=n(67286),i=n(89429),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},89429:function(e,t,n){"use strict";var r=n(4090),i=n(67286),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=s(r,a,arguments);return u&&l&&u(t,"length").configurable&&l(t,"length",{value:1+c(0,e.length-(arguments.length-1))}),t};var d=function(){return s(r,o,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},72779:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t1e-6){if(Math.abs(d*u-l*c)>1e-6&&o){var p=r-a,f=i-s,m=u*u+l*l,g=Math.sqrt(m),v=Math.sqrt(h),y=o*Math.tan((n-Math.acos((m+h-(p*p+f*f))/(2*g*v)))/2),b=y/v,w=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>c*f)+","+(this._x1=e+w*u)+","+(this._y1=t+w*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,u){e=+e,t=+t,o=+o,u=!!u;var l=o*Math.cos(a),c=o*Math.sin(a),d=e+l,h=t+c,p=1^u,f=u?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+d+","+h),o&&(f<0&&(f=f%r+r),f>i?this._+="A"+o+","+o+",0,1,"+p+","+(e-l)+","+(t-c)+"A"+o+","+o+",0,1,"+p+","+(this._x1=d)+","+(this._y1=h):f>1e-6&&(this._+="A"+o+","+o+",0,"+ +(f>=n)+","+p+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},22274:function(e,t,n){"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}n.d(t,{o:function(){return r}})},38764:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(91672),i=n(33554),o=n(15);function a(e){return e.innerRadius}function s(e){return e.outerRadius}function u(e){return e.startAngle}function l(e){return e.endAngle}function c(e){return e&&e.padAngle}function d(e,t,n,r,i,a,s){var u=e-n,l=t-r,c=(s?a:-a)/(0,o._b)(u*u+l*l),d=c*l,h=-c*u,p=e+d,f=t+h,m=n+d,g=r+h,v=(p+m)/2,y=(f+g)/2,b=m-p,w=g-f,k=b*b+w*w,x=i-a,_=p*g-m*f,S=(w<0?-1:1)*(0,o._b)((0,o.Fp)(0,x*x*k-_*_)),E=(_*w-b*S)/k,D=(-_*b-w*S)/k,C=(_*w+b*S)/k,j=(-_*b+w*S)/k,O=E-v,T=D-y,A=C-v,P=j-y;return O*O+T*T>A*A+P*P&&(E=C,D=j),{cx:E,cy:D,x01:-d,y01:-h,x11:E*(i/x-1),y11:D*(i/x-1)}}function h(){var e=a,t=s,n=(0,i.Z)(0),h=null,p=u,f=l,m=c,g=null;function v(){var i,a,s=+e.apply(this,arguments),u=+t.apply(this,arguments),l=p.apply(this,arguments)-o.ou,c=f.apply(this,arguments)-o.ou,v=(0,o.Wn)(c-l),y=c>l;if(g||(g=i=(0,r.Z)()),uo.Ho){if(v>o.BZ-o.Ho)g.moveTo(u*(0,o.mC)(l),u*(0,o.O$)(l)),g.arc(0,0,u,l,c,!y),s>o.Ho&&(g.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),g.arc(0,0,s,c,l,y));else{var b,w,k=l,x=c,_=l,S=c,E=v,D=v,C=m.apply(this,arguments)/2,j=C>o.Ho&&(h?+h.apply(this,arguments):(0,o._b)(s*s+u*u)),O=(0,o.VV)((0,o.Wn)(u-s)/2,+n.apply(this,arguments)),T=O,A=O;if(j>o.Ho){var P=(0,o.ZR)(j/s*(0,o.O$)(C)),R=(0,o.ZR)(j/u*(0,o.O$)(C));(E-=2*P)>o.Ho?(P*=y?1:-1,_+=P,S-=P):(E=0,_=S=(l+c)/2),(D-=2*R)>o.Ho?(R*=y?1:-1,k+=R,x-=R):(D=0,k=x=(l+c)/2)}var M=u*(0,o.mC)(k),F=u*(0,o.O$)(k),N=s*(0,o.mC)(S),I=s*(0,o.O$)(S);if(O>o.Ho){var L,B=u*(0,o.mC)(x),z=u*(0,o.O$)(x),U=s*(0,o.mC)(_),q=s*(0,o.O$)(_);if(vo.Ho?A>o.Ho?(b=d(U,q,M,F,u,A,y),w=d(B,z,N,I,u,A,y),g.moveTo(b.cx+b.x01,b.cy+b.y01),Ao.Ho&&E>o.Ho?T>o.Ho?(b=d(N,I,B,z,s,-T,y),w=d(M,F,U,q,s,-T,y),g.lineTo(b.cx+b.x01,b.cy+b.y01),T=s;--u)h.point(v[u],y[u]);h.lineEnd(),h.areaEnd()}}g&&(v[a]=+e(p,a,o),y[a]=+n(p,a,o),h.point(t?+t(p,a,o):v[a],r?+r(p,a,o):y[a]))}if(f)return h=null,f+""||null}function f(){return(0,s.Z)().defined(l).curve(d).context(c)}return p.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,o.Z)(+n),t=null,p):e},p.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.Z)(+t),p):e},p.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,o.Z)(+e),p):t},p.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,o.Z)(+e),r=null,p):n},p.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,o.Z)(+e),p):n},p.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,o.Z)(+e),p):r},p.lineX0=p.lineY0=function(){return f().x(e).y(n)},p.lineY1=function(){return f().x(e).y(r)},p.lineX1=function(){return f().x(t).y(n)},p.defined=function(e){return arguments.length?(l="function"==typeof e?e:(0,o.Z)(!!e),p):l},p.curve=function(e){return arguments.length?(d=e,null!=c&&(h=d(c)),p):d},p.context=function(e){return arguments.length?(null==e?c=h=null:h=d(c=e),p):c},p}var c=n(69619),d=p(a.Z);function h(e){this._curve=e}function p(e){function t(t){return new h(e(t))}return t._curve=e,t}function f(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(p(e)):t()._curve},e}function m(){return f((0,s.Z)().curve(d))}function g(){var e=l().curve(d),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return f(n())},delete e.lineX0,e.lineEndAngle=function(){return f(r())},delete e.lineX1,e.lineInnerRadius=function(){return f(i())},delete e.lineY0,e.lineOuterRadius=function(){return f(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(p(e)):t()._curve},e}function v(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}h.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}};var y=Array.prototype.slice;function b(e){return e.source}function w(e){return e.target}function k(e){var t=b,n=w,r=u.x,a=u.y,s=null;function l(){var o,u=y.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(s||(s=o=(0,i.Z)()),e(s,+r.apply(this,(u[0]=l,u)),+a.apply(this,u),+r.apply(this,(u[0]=c,u)),+a.apply(this,u)),o)return s=null,o+""||null}return l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(e){return arguments.length?(n=e,l):n},l.x=function(e){return arguments.length?(r="function"==typeof e?e:(0,o.Z)(+e),l):r},l.y=function(e){return arguments.length?(a="function"==typeof e?e:(0,o.Z)(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}function x(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function _(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function S(e,t,n,r,i){var o=v(t,n),a=v(t,n=(n+i)/2),s=v(r,n),u=v(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function E(){return k(x)}function D(){return k(_)}function C(){var e=k(S);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var j=n(15),O={draw:function(e,t){var n=Math.sqrt(t/j.pi);e.moveTo(n,0),e.arc(0,0,n,0,j.BZ)}},T={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},A=Math.sqrt(1/3),P=2*A,R={draw:function(e,t){var n=Math.sqrt(t/P),r=n*A;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},M=Math.sin(j.pi/10)/Math.sin(7*j.pi/10),F=Math.sin(j.BZ/10)*M,N=-Math.cos(j.BZ/10)*M,I={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=F*n,i=N*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=j.BZ*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},L={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},B=Math.sqrt(3),z={draw:function(e,t){var n=-Math.sqrt(t/(3*B));e.moveTo(0,2*n),e.lineTo(-B*n,-n),e.lineTo(B*n,-n),e.closePath()}},U=Math.sqrt(3)/2,q=1/Math.sqrt(12),$=(q/2+1)*3,H={draw:function(e,t){var n=Math.sqrt(t/$),r=n/2,i=n*q,o=n*q+n,a=-r;e.moveTo(r,i),e.lineTo(r,o),e.lineTo(a,o),e.lineTo(-.5*r-U*i,U*r+-.5*i),e.lineTo(-.5*r-U*o,U*r+-.5*o),e.lineTo(-.5*a-U*o,U*a+-.5*o),e.lineTo(-.5*r+U*i,-.5*i-U*r),e.lineTo(-.5*r+U*o,-.5*o-U*r),e.lineTo(-.5*a+U*o,-.5*o-U*a),e.closePath()}},W=[O,T,R,L,I,z,H];function V(){var e=(0,o.Z)(O),t=(0,o.Z)(64),n=null;function r(){var r;if(n||(n=r=(0,i.Z)()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.Z)(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.Z)(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function G(){}function Y(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Z(e){this._context=e}function K(e){return new Z(e)}function J(e){this._context=e}function X(e){return new J(e)}function Q(e){this._context=e}function ee(e){return new Q(e)}function et(e,t){this._basis=new Z(e),this._beta=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Y(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Y(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},J.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Y(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Q.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Y(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},et.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var en=function e(t){function n(e){return 1===t?new Z(e):new et(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function er(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ei(e,t){this._context=e,this._k=(1-t)/6}ei.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:er(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:er(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eo=function e(t){function n(e){return new ei(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ea(e,t){this._context=e,this._k=(1-t)/6}ea.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:er(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var es=function e(t){function n(e){return new ea(e,t)}return n.tension=function(t){return e(+t)},n}(0);function eu(e,t){this._context=e,this._k=(1-t)/6}eu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:er(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var el=function e(t){function n(e){return new eu(e,t)}return n.tension=function(t){return e(+t)},n}(0);function ec(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>j.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>j.Ho){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function ed(e,t){this._context=e,this._alpha=t}ed.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ec(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eh=function e(t){function n(e){return t?new ed(e,t):new ei(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ep(e,t){this._context=e,this._alpha=t}ep.prototype={areaStart:G,areaEnd:G,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ec(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ef=function e(t){function n(e){return t?new ep(e,t):new ea(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function em(e,t){this._context=e,this._alpha=t}em.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ec(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eg=function e(t){function n(e){return t?new em(e,t):new eu(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ev(e){this._context=e}function ey(e){return new ev(e)}function eb(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function ew(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ek(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function ex(e){this._context=e}function e_(e){this._context=new eS(e)}function eS(e){this._context=e}function eE(e){return new ex(e)}function eD(e){return new e_(e)}function eC(e){this._context=e}function ej(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function eN(e,t){return e[t]}function eI(){var e=(0,o.Z)([]),t=eF,n=eM,r=eN;function i(i){var o,a,s=e.apply(this,arguments),u=i.length,l=s.length,c=Array(l);for(o=0;o0){for(var n,r,i,o=0,a=e[0].length;o0)for(var n,r,i,o,a,s,u=0,l=e[t[0]].length;u0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function ez(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=t,r=n);return r}function eH(e){var t=e.map(eW);return eF(e).sort(function(e,n){return t[e]-t[n]})}function eW(e){for(var t,n=0,r=-1,i=e.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},79767:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(91672),i=n(33554),o=n(20651),a=n(11053);function s(){var e=a.x,t=a.y,n=(0,i.Z)(!0),s=null,u=o.Z,l=null;function c(i){var o,a,c,d=i.length,h=!1;for(null==s&&(l=u(c=(0,r.Z)())),o=0;o<=d;++o)!(o1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?h:e<=-1?-h:Math.asin(e)}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),u=(0,r.Z)(a.BZ),l=(0,r.Z)(0);function c(r){var i,o,c,d,h,p=r.length,f=0,m=Array(p),g=Array(p),v=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,u.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/p,l.apply(this,arguments)),w=b*(y<0?-1:1);for(i=0;i0&&(f+=h);for(null!=t?m.sort(function(e,n){return t(g[e],g[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=f?(y-p*w)/f:0;i0?h*c:0)+w,g[o]={data:r[o],index:i,value:h,startAngle:v,endAngle:d,padAngle:b};return g}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c.padAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},35368:function(e){var t;t=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(e,r,i){return(n=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o}:Reflect.construct).apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?n-1:0),i=1;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(s(e));try{for(r.s();!(t=r.n()).done;){var o,a=(o=t.value,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,s=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),2!==o.length);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(s)throw r}}return o}}(o,2)||i(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],l=a[1];n[u]=l}}catch(e){r.e(e)}finally{r.f()}return n}function P(e,t){for(;null!==e;){var n=d(e,t);if(n){if(n.get)return O(n.get);if("function"==typeof n.value)return O(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var R=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),M=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),F=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=h(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=h(["#text"]),z=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),U=h(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=h(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),$=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=p(/<%[\w\W]*|[\w\W]*%>/gm),V=p(/\${[\w\W]*}/gm),G=p(/^data-[\-\w.\u00B7-\uFFFF]/),Y=p(/^aria-[\-\w]+$/),Z=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=p(/^(?:\w+script|data):/i),J=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=p(/^html$/i),Q=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){var n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,a=function(e){return t(e)};if(a.version="3.0.0",a.removed=[],!o||!o.document||9!==o.document.nodeType)return a.isSupported=!1,a;var u=o.document,l=o.document,c=o.DocumentFragment,d=o.HTMLTemplateElement,p=o.Node,f=o.Element,m=o.NodeFilter,g=o.NamedNodeMap,v=void 0===g?o.NamedNodeMap||o.MozNamedAttrMap:g,O=o.HTMLFormElement,ee=o.DOMParser,et=o.trustedTypes,en=f.prototype,er=P(en,"cloneNode"),ei=P(en,"nextSibling"),eo=P(en,"childNodes"),ea=P(en,"parentNode");if("function"==typeof d){var es=l.createElement("template");es.content&&es.content.ownerDocument&&(l=es.content.ownerDocument)}var eu=Q(et,u),el=eu?eu.createHTML(""):"",ec=l,ed=ec.implementation,eh=ec.createNodeIterator,ep=ec.createDocumentFragment,ef=ec.getElementsByTagName,em=u.importNode,eg={};a.isSupported="function"==typeof s&&"function"==typeof ea&&ed&&void 0!==ed.createHTMLDocument;var ev=Z,ey=null,eb=T({},[].concat(r(R),r(M),r(F),r(I),r(B))),ew=null,ek=T({},[].concat(r(z),r(U),r(q),r($))),ex=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e_=null,eS=null,eE=!0,eD=!0,eC=!1,ej=!0,eO=!1,eT=!1,eA=!1,eP=!1,eR=!1,eM=!1,eF=!1,eN=!0,eI=!1,eL=!0,eB=!1,ez={},eU=null,eq=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),e$=null,eH=T({},["audio","video","img","source","image","track"]),eW=null,eV=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eG="http://www.w3.org/1998/Math/MathML",eY="http://www.w3.org/2000/svg",eZ="http://www.w3.org/1999/xhtml",eK=eZ,eJ=!1,eX=null,eQ=T({},[eG,eY,eZ],x),e0=["application/xhtml+xml","text/html"],e1=null,e2=l.createElement("form"),e3=function(e){return e instanceof RegExp||e instanceof Function},e5=function(t){e1&&e1===t||(t&&"object"===e(t)||(t={}),t=A(t),i="application/xhtml+xml"===(n=n=-1===e0.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?x:k,ey="ALLOWED_TAGS"in t?T({},t.ALLOWED_TAGS,i):eb,ew="ALLOWED_ATTR"in t?T({},t.ALLOWED_ATTR,i):ek,eX="ALLOWED_NAMESPACES"in t?T({},t.ALLOWED_NAMESPACES,x):eQ,eW="ADD_URI_SAFE_ATTR"in t?T(A(eV),t.ADD_URI_SAFE_ATTR,i):eV,e$="ADD_DATA_URI_TAGS"in t?T(A(eH),t.ADD_DATA_URI_TAGS,i):eH,eU="FORBID_CONTENTS"in t?T({},t.FORBID_CONTENTS,i):eq,e_="FORBID_TAGS"in t?T({},t.FORBID_TAGS,i):{},eS="FORBID_ATTR"in t?T({},t.FORBID_ATTR,i):{},ez="USE_PROFILES"in t&&t.USE_PROFILES,eE=!1!==t.ALLOW_ARIA_ATTR,eD=!1!==t.ALLOW_DATA_ATTR,eC=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ej=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,eO=t.SAFE_FOR_TEMPLATES||!1,eT=t.WHOLE_DOCUMENT||!1,eR=t.RETURN_DOM||!1,eM=t.RETURN_DOM_FRAGMENT||!1,eF=t.RETURN_TRUSTED_TYPE||!1,eP=t.FORCE_BODY||!1,eN=!1!==t.SANITIZE_DOM,eI=t.SANITIZE_NAMED_PROPS||!1,eL=!1!==t.KEEP_CONTENT,eB=t.IN_PLACE||!1,ev=t.ALLOWED_URI_REGEXP||ev,eK=t.NAMESPACE||eZ,t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ex.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&e3(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ex.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ex.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eO&&(eD=!1),eM&&(eR=!0),ez&&(ey=T({},r(B)),ew=[],!0===ez.html&&(T(ey,R),T(ew,z)),!0===ez.svg&&(T(ey,M),T(ew,U),T(ew,$)),!0===ez.svgFilters&&(T(ey,F),T(ew,U),T(ew,$)),!0===ez.mathMl&&(T(ey,I),T(ew,q),T(ew,$))),t.ADD_TAGS&&(ey===eb&&(ey=A(ey)),T(ey,t.ADD_TAGS,i)),t.ADD_ATTR&&(ew===ek&&(ew=A(ew)),T(ew,t.ADD_ATTR,i)),t.ADD_URI_SAFE_ATTR&&T(eW,t.ADD_URI_SAFE_ATTR,i),t.FORBID_CONTENTS&&(eU===eq&&(eU=A(eU)),T(eU,t.FORBID_CONTENTS,i)),eL&&(ey["#text"]=!0),eT&&T(ey,["html","head","body"]),ey.table&&(T(ey,["tbody"]),delete e_.tbody),h&&h(t),e1=t)},e4=T({},["mi","mo","mn","ms","mtext"]),e6=T({},["foreignobject","desc","title","annotation-xml"]),e8=T({},["title","style","font","a","script"]),e9=T({},M);T(e9,F),T(e9,N);var e7=T({},I);T(e7,L);var te=function(e){var t=ea(e);t&&t.tagName||(t={namespaceURI:eK,tagName:"template"});var r=k(e.tagName),i=k(t.tagName);return!!eX[e.namespaceURI]&&(e.namespaceURI===eY?t.namespaceURI===eZ?"svg"===r:t.namespaceURI===eG?"svg"===r&&("annotation-xml"===i||e4[i]):!!e9[r]:e.namespaceURI===eG?t.namespaceURI===eZ?"math"===r:t.namespaceURI===eY?"math"===r&&e6[i]:!!e7[r]:e.namespaceURI===eZ?(t.namespaceURI!==eY||!!e6[i])&&(t.namespaceURI!==eG||!!e4[i])&&!e7[r]&&(e8[r]||!e9[r]):"application/xhtml+xml"===n&&!!eX[e.namespaceURI])},tt=function(e){w(a.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tn=function(e,t){try{w(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){w(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ew[e]){if(eR||eM)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},tr=function(e){if(eP)e=""+e;else{var t,r,i=_(e,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===n&&eK===eZ&&(e=''+e+"");var o=eu?eu.createHTML(e):e;if(eK===eZ)try{t=new ee().parseFromString(o,n)}catch(e){}if(!t||!t.documentElement){t=ed.createDocument(eK,"template",null);try{t.documentElement.innerHTML=eJ?el:o}catch(e){}}var a=t.body||t.documentElement;return(e&&r&&a.insertBefore(l.createTextNode(r),a.childNodes[0]||null),eK===eZ)?ef.call(t,eT?"html":"body")[0]:eT?t.documentElement:a},ti=function(e){return eh.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},to=function(t){return"object"===e(p)?t instanceof p:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},ta=function(e,t,n){eg[e]&&y(eg[e],function(e){e.call(a,t,n,e1)})},ts=function(e){if(ta("beforeSanitizeElements",e,null),e instanceof O&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof v)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return tt(e),!0;var t,n=i(e.nodeName);if(ta("uponSanitizeElement",e,{tagName:n,allowedTags:ey}),e.hasChildNodes()&&!to(e.firstElementChild)&&(!to(e.content)||!to(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return tt(e),!0;if(!ey[n]||e_[n]){if(!e_[n]&&tl(n)&&(ex.tagNameCheck instanceof RegExp&&C(ex.tagNameCheck,n)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(n)))return!1;if(eL&&!eU[n]){var r=ea(e)||e.parentNode,o=eo(e)||e.childNodes;if(o&&r)for(var s=o.length,u=s-1;u>=0;--u)r.insertBefore(er(o[u],!0),ei(e))}return tt(e),!0}return e instanceof f&&!te(e)||("noscript"===n||"noembed"===n)&&C(/<\/no(script|embed)/i,e.innerHTML)?(tt(e),!0):(eO&&3===e.nodeType&&(t=S(t=e.textContent,H," "),t=S(t,W," "),t=S(t,V," "),e.textContent!==t&&(w(a.removed,{element:e.cloneNode()}),e.textContent=t)),ta("afterSanitizeElements",e,null),!1)},tu=function(e,t,n){if(eN&&("id"===t||"name"===t)&&(n in l||n in e2))return!1;if(eD&&!eS[t]&&C(G,t));else if(eE&&C(Y,t));else if(!ew[t]||eS[t]){if(!(tl(e)&&(ex.tagNameCheck instanceof RegExp&&C(ex.tagNameCheck,e)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(e))&&(ex.attributeNameCheck instanceof RegExp&&C(ex.attributeNameCheck,t)||ex.attributeNameCheck instanceof Function&&ex.attributeNameCheck(t))||"is"===t&&ex.allowCustomizedBuiltInElements&&(ex.tagNameCheck instanceof RegExp&&C(ex.tagNameCheck,n)||ex.tagNameCheck instanceof Function&&ex.tagNameCheck(n))))return!1}else if(eW[t]);else if(C(ev,S(n,J,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===E(n,"data:")&&e$[e]);else if(eC&&!C(K,S(n,J,"")));else if(n)return!1;return!0},tl=function(e){return e.indexOf("-")>0},tc=function(t){ta("beforeSanitizeAttributes",t,null);var n,r,o,s,u=t.attributes;if(u){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ew};for(s=u.length;s--;){var c=(n=u[s]).name,d=n.namespaceURI;if(r="value"===c?n.value:D(n.value),o=i(c),l.attrName=o,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,ta("uponSanitizeAttribute",t,l),r=l.attrValue,!l.forceKeepAttr&&(tn(c,t),l.keepAttr)){if(!ej&&C(/\/>/i,r)){tn(c,t);continue}eO&&(r=S(r,H," "),r=S(r,W," "),r=S(r,V," "));var h=i(t.nodeName);if(tu(h,o,r)){if(eI&&("id"===o||"name"===o)&&(tn(c,t),r="user-content-"+r),eu&&"object"===e(et)&&"function"==typeof et.getAttributeType){if(d);else switch(et.getAttributeType(h,o)){case"TrustedHTML":r=eu.createHTML(r);break;case"TrustedScriptURL":r=eu.createScriptURL(r)}}try{d?t.setAttributeNS(d,c,r):t.setAttribute(c,r),b(a.removed)}catch(e){}}}}ta("afterSanitizeAttributes",t,null)}},td=function e(t){var n,r=ti(t);for(ta("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ta("uponSanitizeShadowNode",n,null),ts(n)||(n.content instanceof c&&e(n.content),tc(n));ta("afterSanitizeShadowDOM",t,null)};return a.sanitize=function(e){var t,n,r,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((eJ=!e)&&(e=""),"string"!=typeof e&&!to(e)){if("function"!=typeof e.toString)throw j("toString is not a function");if("string"!=typeof(e=e.toString()))throw j("dirty is not a string, aborting")}if(!a.isSupported)return e;if(eA||e5(s),a.removed=[],"string"==typeof e&&(eB=!1),eB){if(e.nodeName){var l=i(e.nodeName);if(!ey[l]||e_[l])throw j("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof p)1===(n=(t=tr("")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===n.nodeName?t=n:"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!eR&&!eO&&!eT&&-1===e.indexOf("<"))return eu&&eF?eu.createHTML(e):e;if(!(t=tr(e)))return eR?null:eF?el:""}t&&eP&&tt(t.firstChild);for(var d=ti(eB?e:t);r=d.nextNode();)ts(r)||(r.content instanceof c&&td(r.content),tc(r));if(eB)return e;if(eR){if(eM)for(o=ep.call(t.ownerDocument);t.firstChild;)o.appendChild(t.firstChild);else o=t;return(ew.shadowroot||ew.shadowrootmod)&&(o=em.call(u,o,!0)),o}var h=eT?t.outerHTML:t.innerHTML;return eT&&ey["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&C(X,t.ownerDocument.doctype.name)&&(h="\n"+h),eO&&(h=S(h,H," "),h=S(h,W," "),h=S(h,V," ")),eu&&eF?eu.createHTML(h):h},a.setConfig=function(e){e5(e),eA=!0},a.clearConfig=function(){e1=null,eA=!1},a.isValidAttribute=function(e,t,n){return e1||e5({}),tu(i(e),i(t),n)},a.addHook=function(e,t){"function"==typeof t&&(eg[e]=eg[e]||[],w(eg[e],t))},a.removeHook=function(e){if(eg[e])return b(eg[e])},a.removeHooks=function(e){eg[e]&&(eg[e]=[])},a.removeAllHooks=function(){eg={}},a}()},e.exports=t()},56230:function(e){e.exports=()=>/(?:[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDD-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF6](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC2\uDED0-\uDED9\uDEE0-\uDEE7]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?))/g},22699:function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,o,a,s,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var l=Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(void 0===(i=this._events[e]))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),i.apply(this,a)}else if(r(i))for(s=0,a=Array.prototype.slice.call(arguments,1),o=(u=i.slice()).length;s0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,o=-1,i===t||n(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(i)){for(s=a;s-- >0;)if(i[s]===t||i[s].listener&&i[s].listener===t){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0==arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0==arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},85978:function(e,t,n){var r,i,o;o={canUseDOM:i=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!!(window.addEventListener||window.attachEvent),canUseViewport:i&&!!window.screen},void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)},69378:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var r,i,o,a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},6238:function(e){function t(e,t,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=t.get(i);return void 0===o&&(o=e.call(this,r),t.set(i,o)),o}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function r(){return JSON.stringify(arguments)}function i(){this.cache=Object.create(null)}i.prototype.has=function(e){return e in this.cache},i.prototype.get=function(e){return this.cache[e]},i.prototype.set=function(e,t){this.cache[e]=t};var o={create:function(){return new i}};e.exports=function(e,i){var a=i&&i.cache?i.cache:o,s=i&&i.serializer?i.serializer:r;return(i&&i.strategy?i.strategy:function(e,r){var i,o,a=1===e.length?t:n;return i=r.cache.create(),o=r.serializer,a.bind(this,e,i,o)})(e,{cache:a,serializer:s})},e.exports.strategies={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)},monadic:function(e,n){var r,i;return r=n.cache.create(),i=n.serializer,t.bind(this,e,r,i)}}},77847:function(e){e.exports=a,a.default=a,a.stable=l,a.stableStringify=l;var t="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,a,u,l){void 0===l&&(l=o()),function e(r,i,o,a,u,l,c){if(l+=1,"object"==typeof r&&null!==r){for(d=0;dc.depthLimit||void 0!==c.edgesLimit&&o+1>c.edgesLimit){s(t,r,i,u);return}if(a.push(r),Array.isArray(r))for(d=0;dt?1:0}function l(e,a,l,d){void 0===d&&(d=o());var h,p=function e(i,o,a,l,c,d,h){if(d+=1,"object"==typeof i&&null!==i){for(p=0;ph.depthLimit||void 0!==h.edgesLimit&&a+1>h.edgesLimit){s(t,i,o,c);return}if(l.push(i),Array.isArray(i))for(p=0;p0)for(var r=0;ri)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(n);)n=Math.floor(Math.random()*i);return r(e,n)}),n.addUniqueNumber=function(e){var t=a(e);return e.add(t),t},n.generateUniqueNumber=a,Object.defineProperty(n,"__esModule",{value:!0})},22989:function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n=0?i:i+2*Math.PI)/Math.PI*180}function u(e){return e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r-1,k=y.isContentEditable;if(w||k){if(h||v===y||v&&k&&v.isContentEditable&&v.contains(y))return!1}else if((d||"touchstart"===e.type)&&v){var x=v.tagName;(v.isContentEditable||f.indexOf(x)>-1)&&v.blur()}if(r.clientStores=[new p(u(e))],r.flag=!0,r.isDrag=!1,r._dragFlag=!0,r.datas={},c&&(3===e.which||2===e.button))return r.initDrag(),!1;r.doubleFlag=(0,i.zO)()-r.prevTime<200,!1===r.emit("dragStart",a({datas:r.datas,inputEvent:e,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition(),{preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}}))&&r.initDrag(),r.flag&&d&&e.preventDefault()}if(!r.flag)return!1;var _=0;if(g&&m&&l&&(_=setTimeout(function(){(0,i.vP)(s,"touchstart",r.onDragStart,{passive:!1})})),!g&&m&&l&&(0,i.xC)(s,"touchstart",r.onDragStart),r.flag&&(n=e).touches&&n.touches.length>=2){if(clearTimeout(_),g&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}},r.onDrag=function(e,t){if(r.flag){var n=u(e),i=r.moveClients(n,e,!1);if(r._dragFlag){if((r.pinchFlag||i.deltaX||i.deltaY)&&!1===r.emit("drag",a({},i,{isScroll:!!t,inputEvent:e}))){r.stop();return}r.pinchFlag&&r.onPinch(e,n)}r.getCurrentStore().getPosition(n,!0)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,o=t.container;r.isTouch&&n&&(0,i.xC)(o,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var s=u(e);0!==s.length&&r.options.keepDragging?r._addStore(new p(s)):r.flag=!1;var l=r._getPosition(),c=(0,i.zO)(),d=!r.isDrag&&r.doubleFlag;r.prevTime=r.isDrag||d?0:c,r.flag||(r.emit("dragEnd",a({datas:r.datas,isDouble:d,isDrag:r.isDrag,isClick:!r.isDrag,inputEvent:e},l)),r.clientStores=[])}},r.onBlur=function(){r.onDragEnd()};var o=[].concat(t);r.options=a({checkInput:!1,container:o.length>1?window:o[0],preventRightClick:!0,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var s=r.options,l=s.container,c=s.events,d=s.checkWindowBlur;if(r.isTouch=c.indexOf("touch")>-1,r.isMouse=c.indexOf("mouse")>-1,r.targets=o,r.isMouse&&(o.forEach(function(e){(0,i.vP)(e,"mousedown",r.onDragStart)}),(0,i.vP)(l,"mousemove",r.onDrag),(0,i.vP)(l,"mouseup",r.onDragEnd),(0,i.vP)(l,"contextmenu",r.onDragEnd)),d&&(0,i.vP)(window,"blur",r.onBlur),r.isTouch){var h={passive:!1};o.forEach(function(e){(0,i.vP)(e,"touchstart",r.onDragStart,h)}),(0,i.vP)(l,"touchmove",r.onDrag,h),(0,i.vP)(l,"touchend",r.onDragEnd,h),(0,i.vP)(l,"touchcancel",r.onDragEnd,h)}return r}!function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.stop=function(){this.isDrag=!1,this.flag=!1,this.clientStores=[],this.datas={}},n.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce(function(e,t){return e+t.movement},0)},n.isDragging=function(){return this.isDrag},n.isFlag=function(){return this.flag},n.isPinchFlag=function(){return this.pinchFlag},n.isDoubleFlag=function(){return this.doubleFlag},n.isPinching=function(){return this.isPinch},n.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},n.move=function(e,t){var n=e[0],r=e[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map(function(e){var t=e.clientX,i=e.clientY;return{clientX:t+n,clientY:i+r,originalClientX:t,originalClientY:i}}),t,!0)},n.triggerDragStart=function(e){this.onDragStart(e,!1)},n.setEventDatas=function(e){var t=this.datas;for(var n in e)t[n]=e[n];return this},n.getCurrentEvent=function(e){return a({datas:this.datas},this._getPosition(),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},n.getEventDatas=function(){return this.datas},n.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),(0,i.xC)(window,"blur",this.onBlur),this.isMouse&&(t.forEach(function(t){(0,i.xC)(t,"mousedown",e.onDragStart)}),(0,i.xC)(n,"mousemove",this.onDrag),(0,i.xC)(n,"mouseup",this.onDragEnd),(0,i.xC)(n,"contextmenu",this.onDragEnd)),this.isTouch&&(t.forEach(function(t){(0,i.xC)(t,"touchstart",e.onDragStart)}),(0,i.xC)(n,"touchstart",this.onDragStart),(0,i.xC)(n,"touchmove",this.onDrag),(0,i.xC)(n,"touchend",this.onDragEnd),(0,i.xC)(n,"touchcancel",this.onDragEnd))},n.onPinchStart=function(e){var t=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>t)){var n=new p(u(e));this.pinchFlag=!0,this._addStore(n),!1===this.emit("pinchStart",a({datas:this.datas,angle:n.getAngle(),touches:this.getCurrentStore().getPositions()},n.getPosition(),{inputEvent:e}))&&(this.pinchFlag=!1)}},n.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",a({datas:this.datas,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t),{inputEvent:e}))}},n.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",a({datas:this.datas,isPinch:t,touches:n.getPositions()},n.getPosition(),{inputEvent:e}))}},n.initDrag=function(){this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1},n.getCurrentStore=function(){return this.clientStores[0]},n.moveClients=function(e,t,n){var r=this._getPosition(e,n);return(r.deltaX||r.deltaY)&&(this.isDrag=!0),a({datas:this.datas},r,{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},n._addStore=function(e){this.clientStores.splice(0,0,e)},n._getPosition=function(e,t){var n=this.getCurrentStore().getPosition(e,t),r=this.clientStores.slice(1).reduce(function(e,t){var n=t.getPosition();return e.distX+=n.distX,e.distY+=n.distY,e},n),i=r.distX,o=r.distY;return a({},n,{distX:i,distY:o})},t}(r.Z);t.Z=m},67286:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var l=function(){throw new a},c=u?function(){try{return arguments.callee,l}catch(e){try{return u(arguments,"callee").get}catch(e){return l}}}():l,d=n(32636)(),h=Object.getPrototypeOf||function(e){return e.__proto__},p={},f="undefined"==typeof Uint8Array?r:h(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=h(i.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(4090),b=n(23198),w=y.call(Function.call,Array.prototype.concat),k=y.call(Function.apply,Array.prototype.splice),x=y.call(Function.call,String.prototype.replace),_=y.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,D=function(e){var t=_(e,0,1),n=_(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,S,function(e,t,n,i){r[r.length]=n?x(i,E,"$1"):t||e}),r},C=function(e,t){var n,r=e;if(b(v,r)&&(r="%"+(n=v[r])[0]+"%"),b(m,r)){var o=m[r];if(o===p&&(o=g(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=D(e),r=n.length>0?n[0]:"",o=C("%"+r+"%",t),s=o.name,l=o.value,c=!1,d=o.alias;d&&(r=d[0],k(n,w([0,1],d)));for(var h=1,p=!0;h=n.length){var y=u(l,f);l=(p=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:l[f]}else p=b(l,f),l=l[f];p&&!c&&(m[s]=l)}}return l}},13050:function(e,t,n){"use strict";n.d(t,{Ps:function(){return B}});var r,i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n120){for(var f=Math.floor(u/80),m=u%80,g=[],v=0;v",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),S=n(75899),E=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),D=n(85717),C=function(){function e(e){var t=new x.WU(_.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e,t=this.token;if(t.kind!==_.EOF)do t=null!==(e=t.next)&&void 0!==e?e:t.next=function(e,t){for(var n=e.source,r=n.body,i=r.length,o=t.end;o31||9===o));return new x.WU(_.COMMENT,t,s,n,r,i,a.slice(t+1,s))}(n,o,s,u,t);case 36:return new x.WU(_.DOLLAR,o,o+1,s,u,t);case 38:return new x.WU(_.AMP,o,o+1,s,u,t);case 40:return new x.WU(_.PAREN_L,o,o+1,s,u,t);case 41:return new x.WU(_.PAREN_R,o,o+1,s,u,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new x.WU(_.SPREAD,o,o+3,s,u,t);break;case 58:return new x.WU(_.COLON,o,o+1,s,u,t);case 61:return new x.WU(_.EQUALS,o,o+1,s,u,t);case 64:return new x.WU(_.AT,o,o+1,s,u,t);case 91:return new x.WU(_.BRACKET_L,o,o+1,s,u,t);case 93:return new x.WU(_.BRACKET_R,o,o+1,s,u,t);case 123:return new x.WU(_.BRACE_L,o,o+1,s,u,t);case 124:return new x.WU(_.PIPE,o,o+1,s,u,t);case 125:return new x.WU(_.BRACE_R,o,o+1,s,u,t);case 34:if(34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2))return function(e,t,n,r,i,o){for(var a=e.body,s=t+3,u=s,l=0,c="";s=48&&u<=57)throw w(e,l,"Invalid number, unexpected digit after 0: ".concat(j(u),"."))}else l=O(e,l,u),u=s.charCodeAt(l);if(46===u&&(c=!0,u=s.charCodeAt(++l),l=O(e,l,u),u=s.charCodeAt(l)),(69===u||101===u)&&(c=!0,(43===(u=s.charCodeAt(++l))||45===u)&&(u=s.charCodeAt(++l)),l=O(e,l,u),u=s.charCodeAt(l)),46===u||95===(a=u)||a>=65&&a<=90||a>=97&&a<=122)throw w(e,l,"Invalid number, expected digit but got: ".concat(j(u),"."));return new x.WU(c?_.FLOAT:_.INT,t,l,r,i,o,s.slice(t,l))}(n,o,a,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){for(var o=e.body,a=o.length,s=t+1,u=0;s!==a&&!isNaN(u=o.charCodeAt(s))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++s;return new x.WU(_.NAME,t,s,n,r,i,o.slice(t,s))}(n,o,s,u,t)}throw w(n,o,a<32&&9!==a&&10!==a&&13!==a?"Cannot contain the invalid character ".concat(j(a),"."):39===a?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(j(a),"."))}var l=e.line,c=1+o-e.lineStart;return new x.WU(_.EOF,i,i,l,c,t)}(this,t);while(t.kind===_.COMMENT);return t},e}();function j(e){return isNaN(e)?_.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function O(e,t,n){var r=e.body,i=t,o=n;if(o>=48&&o<=57){do o=r.charCodeAt(++i);while(o>=48&&o<=57);return i}throw w(e,i,"Invalid number, expected digit but got: ".concat(j(o),"."))}function T(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var A=function(){function e(e,t){var n=(0,S.T)(e)?e:new S.H(e);this._lexer=new C(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(_.NAME);return{kind:k.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:k.DOCUMENT,definitions:this.many(_.SOF,this.parseDefinition,_.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(_.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(_.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(_.BRACE_L))return{kind:k.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var n=this.parseOperationType();return this.peek(_.NAME)&&(e=this.parseName()),{kind:k.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(_.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(_.PAREN_L,this.parseVariableDefinition,_.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:k.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(_.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(_.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(_.DOLLAR),{kind:k.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:k.SELECTION_SET,selections:this.many(_.BRACE_L,this.parseSelection,_.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(_.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(_.COLON)?(e=r,t=this.parseName()):t=r,{kind:k.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(_.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(_.PAREN_L,t,_.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(_.COLON),{kind:k.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:k.ARGUMENT,name:this.parseName(),value:(this.expectToken(_.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(_.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(_.NAME)?{kind:k.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:k.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return(this.expectKeyword("fragment"),(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)===!0)?{kind:k.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:k.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case _.BRACKET_L:return this.parseList(e);case _.BRACE_L:return this.parseObject(e);case _.INT:return this._lexer.advance(),{kind:k.INT,value:t.value,loc:this.loc(t)};case _.FLOAT:return this._lexer.advance(),{kind:k.FLOAT,value:t.value,loc:this.loc(t)};case _.STRING:case _.BLOCK_STRING:return this.parseStringLiteral();case _.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:k.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:k.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:k.NULL,loc:this.loc(t)};default:return{kind:k.ENUM,value:t.value,loc:this.loc(t)}}case _.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:k.STRING,value:e.value,block:e.kind===_.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:k.LIST,values:this.any(_.BRACKET_L,function(){return t.parseValueLiteral(e)},_.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:k.OBJECT,fields:this.any(_.BRACE_L,function(){return t.parseObjectField(e)},_.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(_.COLON),{kind:k.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(_.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(_.AT),{kind:k.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(_.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(_.BRACKET_R),e={kind:k.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(_.BANG))?{kind:k.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:k.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===_.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(_.STRING)||this.peek(_.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);return{kind:k.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(_.COLON);var n=this.parseNamedType();return{kind:k.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:k.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:k.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if((null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)===!0){var t=[];this.expectOptionalToken(_.AMP);do t.push(this.parseNamedType());while(this.expectOptionalToken(_.AMP)||this.peek(_.NAME));return t}return this.delimitedMany(_.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)===!0&&this.peek(_.BRACE_L)&&this._lexer.lookahead().kind===_.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(_.BRACE_L,this.parseFieldDefinition,_.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(_.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:k.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(_.PAREN_L,this.parseInputValueDef,_.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(_.COLON);var i=this.parseTypeReference();this.expectOptionalToken(_.EQUALS)&&(e=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:k.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:k.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:k.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(_.EQUALS)?this.delimitedMany(_.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:k.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(_.BRACE_L,this.parseEnumValueDefinition,_.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:k.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:k.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(_.BRACE_L,this.parseInputValueDef,_.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===_.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:k.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:k.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:k.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:k.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:k.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:k.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:k.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(_.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:k.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(_.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==E[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if((null===(t=this._options)||void 0===t?void 0:t.noLocation)!==!0)return new x.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw w(this._lexer.source,t.start,"Expected ".concat(R(e),", found ").concat(P(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===_.NAME&&t.value===e)this._lexer.advance();else throw w(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(P(t),"."))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===_.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return w(this._lexer.source,t.start,"Unexpected ".concat(P(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n},e}();function P(e){var t=e.value;return R(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function R(e){return e===_.BANG||e===_.DOLLAR||e===_.AMP||e===_.PAREN_L||e===_.PAREN_R||e===_.SPREAD||e===_.COLON||e===_.EQUALS||e===_.AT||e===_.BRACKET_L||e===_.BRACKET_R||e===_.BRACE_L||e===_.PIPE||e===_.BRACE_R?'"'.concat(e,'"'):e}var M=new Map,F=new Map,N=!0,I=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function B(e){for(var t=[],n=1;n>1,c=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,h=23===i?5960464477539062e-23:0,p=r?0:o-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=h/u:t+=h*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=f,a/=256,l-=8);e[n+p-f]|=128*m}},91285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},77481:function(e,t,n){"use strict";n.d(t,{C:function(){return u}});var r=n(54106),i=n(87406),o=n(75413),a=n(30087);function s(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var u=function(){function e(t,n,i,u){void 0===n&&(n=e.defaultLocale);var l,c,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce(function(e,t){return e.length&&t.type===a.du.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,a.FK)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==u?void 0:u.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(l=e.formats,i?Object.keys(l).reduce(function(e,t){var n,o;return e[t]=(n=l[t],(o=i[t])?(0,r.pi)((0,r.pi)((0,r.pi)({},n||{}),o||{}),Object.keys(n).reduce(function(e,t){return e[t]=(0,r.pi)((0,r.pi)({},n[t]),o[t]||{}),e},{})):n),e},(0,r.pi)({},l)):l),this.formatters=u&&u.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.Z)(function(){for(var e,t=[],n=0;n0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=i.Qc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},56313:function(e,t,n){"use strict";n.d(t,{C8:function(){return s},HR:function(){return l},YR:function(){return u},jK:function(){return i},u_:function(){return a}});var r,i,o=n(54106);(r=i||(i={})).MISSING_VALUE="MISSING_VALUE",r.INVALID_VALUE="INVALID_VALUE",r.MISSING_INTL_API="MISSING_INTL_API";var a=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,o.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),s=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),i.INVALID_VALUE,o)||this}return(0,o.ZT)(t,e),t}(a),u=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),i.INVALID_VALUE,r)||this}return(0,o.ZT)(t,e),t}(a),l=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),i.MISSING_VALUE,n)||this}return(0,o.ZT)(t,e),t}(a)},30087:function(e,t,n){"use strict";n.d(t,{FK:function(){return function e(t,n,r,u,l,c,d){if(1===t.length&&(0,o.O4)(t[0]))return[{type:i.literal,value:t[0].value}];for(var h=[],p=0;p1;y&&(v=v.slice(0,-1));var b=u(v),w=r[b];if(v.length>1&&!w&&!i[v]&&!o[b])throw TypeError('Unknown modifier: "'+v+'"');1!==l&&w||(n?a.key=b:a.which=(g=v,o[g=u(g)]||g.toUpperCase().charCodeAt(0))),w&&(a[w]=!y||null)}}catch(e){h=!0,p=e}finally{try{!d&&m.return&&m.return()}finally{if(h)throw p}}return a}(e,t)}),s=function(e){return a.some(function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(null!=r&&(null!=(i="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&i!==r)return!1}return!0}(t,e)})};return null==n?s:s(n)}function u(e){return e=i[e=e.toLowerCase()]||e}t.ZP=s,t.P6=s},98843:function(e){e.exports=function(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var n in t)if(e[n]!==t[n])return!1;return!0}},14304:function(e,t,n){e.exports=window.DOMPurify||(window.DOMPurify=n(35368).default||n(35368))},11597:function(e,t,n){"use strict";function r(e){function t(e,t){Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e,this.code=t}return t.prototype=Error(),t.prototype.name=e,t.prototype.constructor=t,t}let i=r("LaunchDarklyUnexpectedResponseError"),o=r("LaunchDarklyInvalidEnvironmentIdError"),a=r("LaunchDarklyInvalidUserError"),s=r("LaunchDarklyInvalidEventKeyError"),u=r("LaunchDarklyInvalidArgumentError"),l=r("LaunchDarklyFlagFetchError");for(var c={LDUnexpectedResponseError:i,LDInvalidEnvironmentIdError:o,LDInvalidUserError:a,LDInvalidEventKeyError:s,LDInvalidArgumentError:u,LDInvalidDataError:r("LaunchDarklyInvalidDataError"),LDFlagFetchError:l,LDTimeoutError:r("LaunchDarklyTimeoutError"),isHttpErrorRecoverable:function(e){return!(e>=400&&e<500)||400===e||408===e||429===e}},d=[],h=[],p=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),f=0;f<64;++f)d[f]=p[f],h[p.charCodeAt(f)]=f;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63;var m=function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o>18&63]+d[r>>12&63]+d[r>>6&63]+d[63&r]);return i.join("")}(e,o,o+16383>a?a:o+16383));return 1===r?i.push(d[(t=e[n-1])>>2]+d[t<<4&63]+"=="):2===r&&i.push(d[(t=(e[n-2]<<8)+e[n-1])>>10]+d[t>>4&63]+d[t<<2&63]+"="),i.join("")},g=Array.isArray,v=Object.keys,y=Object.prototype.hasOwnProperty,b=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var r,i,o,a=g(t),s=g(n);if(a&&s){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=s)return!1;var u=t instanceof Date,l=n instanceof Date;if(u!=l)return!1;if(u&&l)return t.getTime()==n.getTime();var c=t instanceof RegExp,d=n instanceof RegExp;if(c!=d)return!1;if(c&&d)return t.toString()==n.toString();var h=v(t);if((i=h.length)!==v(n).length)return!1;for(r=i;0!=r--;)if(!y.call(n,h[r]))return!1;for(r=i;0!=r--;)if(!e(t[o=h[r]],n[o]))return!1;return!0}return t!=t&&n!=n};let w=["key","ip","country","email","firstName","lastName","avatar","name"];function k(e){return m(function(e){let t=[];for(let n=0;n({...e,...t}),{})},getLDUserAgentString:function(e){let t=e.version||"?";return e.userAgent+"/"+t},objectHasOwnProperty:x,onNextTick:function(e){setTimeout(e,0)},sanitizeContext:function(e){let t;return e?(null!==e.kind&&void 0!==e.kind||w.forEach(n=>{let r=e[n];void 0!==r&&"string"!=typeof r&&((t=t||{...e})[n]=String(r))}),t||e):e},transformValuesToVersionedValues:function(e){let t={};for(let n in e)x(e,n)&&(t[n]={value:e[n],version:0});return t},transformVersionedValuesToValues:function(e){let t={};for(let n in e)x(e,n)&&(t[n]=e[n].value);return t},wrapPromiseCallback:function(e,t){let n=e.then(e=>(t&&setTimeout(()=>{t(null,e)},0),e),e=>{if(!t)return Promise.reject(e);setTimeout(()=>{t(e,null)},0)});return t?void 0:n}},E=new Uint8Array(16);function D(){if(!_&&!(_="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _(E)}var C=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function j(e){return"string"==typeof e&&C.test(e)}for(var O,T,A=[],P=0;P<256;++P)A.push((P+256).toString(16).substr(1));function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]).toLowerCase();if(!j(n))throw TypeError("Stringified UUID is invalid");return n}var M=0,F=0;function N(e){if(!j(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function I(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function B(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function z(e,t,n,r,i,o){var a;return B((a=B(B(t,e),B(r,o)))<>>32-i,n)}function U(e,t,n,r,i,o,a){return z(t&n|~t&r,e,t,i,o,a)}function q(e,t,n,r,i,o,a){return z(t&r|n&~r,e,t,i,o,a)}function $(e,t,n,r,i,o,a){return z(t^n^r,e,t,i,o,a)}function H(e,t,n,r,i,o,a){return z(n^(t|~r),e,t,i,o,a)}function W(e,t){return e<>>32-t}var V=Object.freeze({__proto__:null,v1:function(e,t,n){var r=t&&n||0,i=t||Array(16),o=(e=e||{}).node||O,a=void 0!==e.clockseq?e.clockseq:T;if(null==o||null==a){var s=e.random||(e.rng||D)();null==o&&(o=O=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=T=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:F+1,c=u-M+(l-F)/1e4;if(c<0&&void 0===e.clockseq&&(a=a+1&16383),(c<0||u>M)&&void 0===e.nsecs&&(l=0),l>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");M=u,F=l,T=a;var d=(1e4*(268435455&(u+=122192928e5))+l)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=255&d;var h=u/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=255&h,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var p=0;p<6;++p)i[r+p]=o[p];return t||R(i)},v3:I("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>>0;b=y,y=v,v=W(g,30)>>>0,g=m,m=x}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(!j(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)},validate:j,stringify:R,parse:N});let G=["debug","info","warn","error","none"];var Y={commonBasicLogger:function(e,t){if(e&&e.destination&&"function"!=typeof e.destination)throw Error("destination for basicLogger was set to a non-function");function n(e){return function(t){console&&console[e]&&console[e].call(console,t)}}let r=e&&e.destination?[e.destination,e.destination,e.destination,e.destination]:[n("log"),n("info"),n("warn"),n("error")],i=!(!e||!e.destination),o=e&&void 0!==e.prefix&&null!==e.prefix?e.prefix:"[LaunchDarkly] ",a=1;if(e&&e.level)for(let t=0;t{};else{let a=e;s[n]=function(){!function(e,n,a){let s;if(a.length<1)return;let u=i?n+": "+o:o;if(1!==a.length&&t){let e=[...a];e[0]=u+e[0],s=t(...e)}else s=u+a[0];try{r[e](s)}catch(e){console&&console.log&&console.log("[LaunchDarkly] Configured logger's "+n+" method threw an exception: "+e)}}(a,n,arguments)}}}}return s},validateLogger:function(e){G.forEach(t=>{if("none"!==t&&(!e[t]||"function"!=typeof e[t]))throw Error("Provided logger instance must support logger."+t+"(...) method")})}};function Z(e){return e&&e.message?e.message:"string"==typeof e||e instanceof String?e:JSON.stringify(e)}let K=" Please see https://docs.launchdarkly.com/sdk/client-side/javascript#initialize-the-client for instructions on SDK initialization.";var J={debugPostingDiagnosticEvent:function(e){return"sending diagnostic event ("+e.kind+")"},debugPostingEvents:function(e){return"sending "+e+" events"},debugPolling:function(e){return"polling for feature flags at "+e},deprecated:function(e,t){return t?'"'+e+'" is deprecated, please use "'+t+'"':'"'+e+'" is deprecated'},environmentNotFound:function(){return"Environment not found. Double check that you specified a valid environment/client-side ID."+K},errorFetchingFlags:function(e){return"Error fetching flag settings: "+Z(e)},eventCapacityExceeded:function(){return"Exceeded event queue capacity. Increase capacity to avoid dropping events."},httpErrorMessage:function(e,t,n){return"Received error "+e+(401===e?" (invalid SDK key)":"")+" for "+t+" - "+(c.isHttpErrorRecoverable(e)?n:"giving up permanently")},httpUnavailable:function(){return"Cannot make HTTP requests in this environment."+K},inspectorMethodError:(e,t)=>`an inspector: "${t}" of type: "${e}" generated an exception`,invalidContentType:function(e){return'Expected application/json content type but got "'+e+'"'},invalidInspector:(e,t)=>`an inspector: "${t}" of an invalid type (${e}) was configured`,invalidContext:function(){return"Invalid context specified."+K},invalidTagValue:e=>`Config option "${e}" must only contain letters, numbers, ., _ or -.`,localStorageUnavailable:function(e){return"local storage is unavailable: "+Z(e)},networkError:e=>"network error"+(e?" ("+e+")":""),optionBelowMinimum:(e,t,n)=>'Config option "'+e+'" was set to '+t+", changing to minimum value of "+n,streamClosing:function(){return"Closing stream connection"},streamConnecting:function(e){return"Opening stream connection to "+e},streamError:function(e,t){return"Error on stream connection: "+Z(e)+", will continue retrying after "+t+" milliseconds."},tagValueTooLong:e=>`Value of "${e}" was longer than 64 characters and was discarded.`,unknownOption:e=>'Ignoring unknown config option "'+e+'"',contextNotSpecified:function(){return"No context specified."+K},unrecoverableStreamError:e=>`Error on stream connection ${Z(e)}, giving up permanently`,wrongOptionType:(e,t,n)=>'Config option "'+e+'" should be of type '+t+", got "+n+", using default value",wrongOptionTypeBoolean:(e,t)=>'Config option "'+e+'" should be a boolean, got '+t+", converting to boolean"};let{validateLogger:X}=Y,Q={baseUrl:{default:"https://app.launchdarkly.com"},streamUrl:{default:"https://clientstream.launchdarkly.com"},eventsUrl:{default:"https://events.launchdarkly.com"},sendEvents:{default:!0},streaming:{type:"boolean"},sendLDHeaders:{default:!0},requestHeaderTransform:{type:"function"},sendEventsOnlyForVariation:{default:!1},useReport:{default:!1},evaluationReasons:{default:!1},eventCapacity:{default:100,minimum:1},flushInterval:{default:2e3,minimum:2e3},samplingInterval:{default:0,minimum:0},streamReconnectDelay:{default:1e3,minimum:0},allAttributesPrivate:{default:!1},privateAttributes:{default:[]},bootstrap:{type:"string|object"},diagnosticRecordingInterval:{default:9e5,minimum:2e3},diagnosticOptOut:{default:!1},wrapperName:{type:"string"},wrapperVersion:{type:"string"},stateProvider:{type:"object"},application:{validator:function(e,t,n){let r={};return t.id&&(r.id=en(`${e}.id`,t.id,n)),t.version&&(r.version=en(`${e}.version`,t.version,n)),r}},inspectors:{default:[]}},ee=/^(\w|\.|-)+$/;function et(e){return e&&e.replace(/\/+$/,"")}function en(e,t,n){if("string"==typeof t&&t.match(ee)){if(!(t.length>64))return t;n.warn(J.tagValueTooLong(e))}else n.warn(J.invalidTagValue(e))}var er={baseOptionDefs:Q,validate:function(e,t,n,r){var i;let o=S.extend({logger:{default:r}},Q,n),a={};function s(e){S.onNextTick(()=>{t&&t.maybeReportError(new c.LDInvalidArgumentError(e))})}let u=S.extend({},e||{});return i=u,Object.keys(a).forEach(e=>{if(void 0!==i[e]){let t=a[e];r&&r.warn(J.deprecated(e,t)),t&&(void 0===i[t]&&(i[t]=i[e]),delete i[e])}}),X((u=function(e){let t=S.extend({},e),n=e=>{if(null===e)return"any";if(void 0===e)return;if(Array.isArray(e))return"array";let t=typeof e;return"boolean"===t||"string"===t||"number"===t||"function"===t?t:"object"};return Object.keys(e).forEach(i=>{let a=e[i];if(null!=a){let u=o[i];if(void 0===u)s(J.unknownOption(i));else{let o=u.type||n(u.default),l=u.validator;if(l){let n=l(i,e[i],r);void 0!==n?t[i]=n:delete t[i]}else if("any"!==o){let e=o.split("|"),r=n(a);0>e.indexOf(r)?"boolean"===o?(t[i]=!!a,s(J.wrongOptionTypeBoolean(i,r))):(s(J.wrongOptionType(i,o,r)),t[i]=u.default):"number"===r&&void 0!==u.minimum&&a{void 0!==t[e]&&null!==t[e]||(t[e]=o[e]&&o[e].default)}),t}(u))).logger),u},getTags:function(e){let t={};return e&&(e.application&&void 0!==e.application.id&&null!==e.application.id&&(t["application-id"]=[e.application.id]),e.application&&void 0!==e.application.version&&null!==e.application.id&&(t["application-version"]=[e.application.version])),t}};let{getLDUserAgentString:ei}=S;var eo={getLDHeaders:function(e,t){if(t&&!t.sendLDHeaders)return{};let n={};n[e.userAgentHeaderName||"User-Agent"]=ei(e),t&&t.wrapperName&&(n["X-LaunchDarkly-Wrapper"]=t.wrapperVersion?t.wrapperName+"/"+t.wrapperVersion:t.wrapperName);let r=er.getTags(t),i=Object.keys(r);return i.length&&(n["x-launchdarkly-tags"]=i.sort().map(e=>Array.isArray(r[e])?r[e].sort().map(t=>`${e}/${t}`):[`${e}/${r[e]}`]).reduce((e,t)=>e.concat(t),[]).join(" ")),n},transformHeaders:function(e,t){return t&&t.requestHeaderTransform?t.requestHeaderTransform({...e}):e}};let{v1:ea}=V,{getLDHeaders:es,transformHeaders:eu}=eo;var el=function(e,t,n){let r=S.extend({"Content-Type":"application/json"},es(e,n)),i={};return i.sendEvents=(t,i,o)=>{if(!e.httpRequest)return Promise.resolve();let a=JSON.stringify(t),s=o?null:ea();return(function t(u){let l=o?r:S.extend({},r,{"X-LaunchDarkly-Event-Schema":"4","X-LaunchDarkly-Payload-ID":s});return e.httpRequest("POST",i,eu(l,n),a).promise.then(e=>{if(e)return e.status>=400&&c.isHttpErrorRecoverable(e.status)&&u?t(!1):function(e){let t={status:e.status},n=e.header("date");if(n){let e=Date.parse(n);e&&(t.serverTime=e)}return t}(e)}).catch(()=>u?t(!1):Promise.reject())})(!0).catch(()=>{})},i};let{commonBasicLogger:ec}=Y;function ed(e){return"string"==typeof e&&"kind"!==e&&e.match(/^(\w|\.|-)+$/)}function eh(e){return e.includes("%")||e.includes(":")?e.replace(/%/g,"%25").replace(/:/g,"%3A"):e}var ep={checkContext:function(e,t){if(e){if(t&&(void 0===e.kind||null===e.kind))return void 0!==e.key&&null!==e.key;let n=e.key,r=void 0===e.kind?"user":e.kind,i=ed(r),o="multi"===r||null!=n&&""!==n;if("multi"===r){let t=Object.keys(e).filter(e=>"kind"!==e);return o&&t.every(e=>ed(e))&&t.every(t=>{let n=e[t].key;return null!=n&&""!==n})}return o&&i}return!1},getContextKeys:function(e,t=ec()){if(!e)return;let n={},{kind:r,key:i}=e;switch(r){case void 0:n.user=`${i}`;break;case"multi":Object.entries(e).filter(([e])=>"kind"!==e).forEach(([e,t])=>{t&&t.key&&(n[e]=t.key)});break;case null:t.warn(`null is not a valid context kind: ${e}`);break;case"":t.warn(`'' is not a valid context kind: ${e}`);break;default:n[r]=`${i}`}return n},getContextKinds:function(e){return e?null===e.kind||void 0===e.kind?["user"]:"multi"!==e.kind?[e.kind]:Object.keys(e).filter(e=>"kind"!==e):[]},getCanonicalKey:function(e){if(e){if((void 0===e.kind||null===e.kind||"user"===e.kind)&&e.key)return e.key;if("multi"!==e.kind&&e.key)return`${e.kind}:${eh(e.key)}`;if("multi"===e.kind)return Object.keys(e).sort().filter(e=>"kind"!==e).map(t=>`${t}:${eh(e[t].key)}`).join(":")}}};let{getContextKinds:ef}=ep;var em=function(){let e={},t=0,n=0,r={},i={};return e.summarizeEvent=e=>{if("feature"===e.kind){let o=e.key+":"+(null!==e.variation&&void 0!==e.variation?e.variation:"")+":"+(null!==e.version&&void 0!==e.version?e.version:""),a=r[o],s=i[e.key];s||(s=new Set,i[e.key]=s),(e.context?ef(e.context):e.contextKeys?Object.keys(e.contextKeys):[]).forEach(e=>s.add(e)),a?a.count=a.count+1:r[o]={count:1,key:e.key,version:e.version,variation:e.variation,value:e.value,default:e.default},(0===t||e.creationDaten&&(n=e.creationDate)}},e.getSummary=()=>{let e={},o=!0;for(let t of Object.values(r)){let n=e[t.key];n||(n={default:t.default,counters:[],contextKinds:[...i[t.key]]},e[t.key]=n);let r={value:t.value,count:t.count};void 0!==t.variation&&null!==t.variation&&(r.variation=t.variation),void 0!==t.version&&null!==t.version?r.version=t.version:r.unknown=!0,n.counters.push(r),o=!1}return o?null:{startDate:t,endDate:n,features:e}},e.clearSummary=()=>{t=0,n=0,r={},i={}},e};function eg(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function ev(e){return(e.startsWith("/")?e.substring(1):e).split("/").map(e=>e.indexOf("~")>=0?e.replace(/~1/g,"/").replace(/~0/g,"~"):e)}function ey(e){return!e.startsWith("/")}function eb(e,t){let n=ey(e),r=ey(t);if(n&&r)return e===t;if(n){let n=ev(t);return 1===n.length&&e===n[0]}if(r){let n=ev(e);return 1===n.length&&t===n[0]}return e===t}function ew(e){return`/${eg(e)}`}var ek={cloneExcluding:function(e,t){let n=[],r={},i=[];for(n.push(...Object.keys(e).map(t=>({key:t,ptr:ew(t),source:e,parent:r,visited:[e]})));n.length;){let e=n.pop();if(t.some(t=>eb(t,e.ptr)))i.push(e.ptr);else{let t=e.source[e.key];if(null===t)e.parent[e.key]=t;else if(Array.isArray(t))e.parent[e.key]=[...t];else if("object"==typeof t){if(e.visited.includes(t))continue;e.parent[e.key]={},n.push(...Object.keys(t).map(n=>{var r,i;return{key:n,ptr:(r=e.ptr,i=eg(n),`${r}/${i}`),source:t,parent:e.parent[e.key],visited:[...e.visited,t]}}))}else e.parent[e.key]=t}}return{cloned:r,excluded:i.sort()}},compare:eb,literalToReference:ew},ex=function(e){let t={},n=e.allAttributesPrivate,r=e.privateAttributes||[],i=["key","kind","_meta","anonymous"],o=["name","ip","firstName","lastName","email","avatar","country"],a=(e,t)=>{if("object"!=typeof e||null===e||Array.isArray(e))return;let{cloned:o,excluded:a}=ek.cloneExcluding(e,(n||t&&e.anonymous?Object.keys(e):[...r,...e._meta&&e._meta.privateAttributes||[]]).filter(e=>!i.some(t=>ek.compare(e,t))));return o.key=String(o.key),a.length&&(o._meta||(o._meta={}),o._meta.redactedAttributes=a),o._meta&&(delete o._meta.privateAttributes,0===Object.keys(o._meta).length&&delete o._meta),void 0!==o.anonymous&&(o.anonymous=!!o.anonymous),o};return t.filter=(e,t=!1)=>void 0===e.kind||null===e.kind?a((e=>{let t={...e.custom||{},kind:"user",key:e.key};for(let n of(void 0!==e.anonymous&&(t.anonymous=!!e.anonymous),o))delete t[n],void 0!==e[n]&&null!==e[n]&&(t[n]=String(e[n]));return void 0!==e.privateAttributeNames&&null!==e.privateAttributeNames&&(t._meta=t._meta||{},t._meta.privateAttributes=e.privateAttributeNames.map(e=>e.startsWith("/")?ek.literalToReference(e):e)),t})(e),t):"multi"===e.kind?((e,t)=>{let n={kind:e.kind};for(let r of Object.keys(e))if("kind"!==r){let i=a(e[r],t);i&&(n[r]=i)}return n})(e,t):a(e,t),t};let{getContextKeys:e_}=ep,eS="ready",eE="initialized",eD="failed",{appendUrlPath:eC,base64URLEncode:ej,objectHasOwnProperty:eO}=S,{getLDHeaders:eT,transformHeaders:eA}=eo,{isHttpErrorRecoverable:eP}=c;var eR=function(e){let t,n,r,i;let o={addPromise:(o,a)=>{t=o,n&&n(),n=a,o.then(n=>{t===o&&(r(n),e&&e())},n=>{t===o&&(i(n),e&&e())})}};return o.resultPromise=new Promise((e,t)=>{r=e,i=t}),o};let{transformHeaders:eM,getLDHeaders:eF}=eo,eN="application/json",{v1:eI}=V,{getContextKinds:eL}=ep,{v1:eB}=V,{baseOptionDefs:ez}=er,{appendUrlPath:eU}=S;var eq=function(e,t){let n=!1,r={type:e.type,name:e.name,synchronous:e.synchronous,method:(...i)=>{try{e.method(...i)}catch{n||(n=!0,t.warn(J.inspectorMethodError(r.type,r.name)))}}};return r};let{onNextTick:e$}=S,eH={flagUsed:"flag-used",flagDetailsChanged:"flag-details-changed",flagDetailChanged:"flag-detail-changed",clientIdentityChanged:"client-identity-changed"};Object.freeze(eH);let{LDTimeoutError:eW}=c,{commonBasicLogger:eV}=Y,{checkContext:eG,getContextKeys:eY}=ep,{InspectorTypes:eZ,InspectorManager:eK}={InspectorTypes:eH,InspectorManager:function(e,t){let n={},r={[eH.flagUsed]:[],[eH.flagDetailsChanged]:[],[eH.flagDetailChanged]:[],[eH.clientIdentityChanged]:[]},i={[eH.flagUsed]:[],[eH.flagDetailsChanged]:[],[eH.flagDetailChanged]:[],[eH.clientIdentityChanged]:[]},o=e&&e.map(e=>eq(e,t));return o&&o.forEach(e=>{Object.prototype.hasOwnProperty.call(r,e.type)&&!e.synchronous?r[e.type].push(e):Object.prototype.hasOwnProperty.call(i,e.type)&&e.synchronous?i[e.type].push(e):t.warn(J.invalidInspector(e.type,e.name))}),n.hasListeners=e=>r[e]&&r[e].length||i[e]&&i[e].length,n.onFlagUsed=(e,t,n)=>{let o=eH.flagUsed;i[o].length&&i[o].forEach(r=>r.method(e,t,n)),r[o].length&&e$(()=>{r[o].forEach(r=>r.method(e,t,n))})},n.onFlags=e=>{let t=eH.flagDetailsChanged;i[t].length&&i[t].forEach(t=>t.method(e)),r[t].length&&e$(()=>{r[t].forEach(t=>t.method(e))})},n.onFlagChanged=(e,t)=>{let n=eH.flagDetailChanged;i[n].length&&i[n].forEach(n=>n.method(e,t)),r[n].length&&e$(()=>{r[n].forEach(n=>n.method(e,t))})},n.onIdentityChanged=e=>{let t=eH.clientIdentityChanged;i[t].length&&i[t].forEach(t=>t.method(e)),r[t].length&&e$(()=>{r[t].forEach(t=>t.method(e))})},n}};Promise.resolve({status:200,header:function(){return null},body:null})},3349:function(e,t,n){"use strict";var r=n(34406),i=n(139),o=n(38398),a=n(15153),s=n(22699);function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(i),c=u(o),d=u(a),h=Object.prototype.hasOwnProperty,p=Object.prototype.toString,f=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===p.call(e)},v=function(e){if(!e||"[object Object]"!==p.call(e))return!1;var t,n=h.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&h.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||h.call(e,t)},y=function(e,t){f&&"__proto__"===t.name?f(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},b=function(e,t){if("__proto__"===t){if(!h.call(e,t))return;if(m)return m(e,t).value}return e[t]},w=function e(){var t,n,r,i,o,a,s=arguments[0],u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});ue.reduce((e,n)=>e.then(()=>t(n)),Promise.resolve()),j=(e,t,n,r)=>{let i=Object.create(null);return e.forEach(e=>{let o=t(e);i[o]?r(i[o],e):i[o]=n(e)}),i};class O{constructor(e){this.batches=j(e,e=>`${e.apiHost}_${e.writeKey}_${e.dataset}`,e=>({apiHost:e.apiHost,writeKey:e.writeKey,dataset:e.dataset,events:[e]}),(e,t)=>e.events.push(t))}encodeBatchEvents(e){let t=!0,n=0;return{encoded:"["+e.reduce((e,r)=>{try{let i=JSON.stringify(r);n++;let o=e+(t?"":",")+i;return t=!1,o}catch(t){return r.encodeError=t,e}},"")+"]",numEncoded:n}}}class T{constructor({timestamp:e,apiHost:t,postData:n,writeKey:r,dataset:i,sampleRate:o,metadata:a}){this.timestamp=e,this.apiHost=t,this.postData=n,this.writeKey=r,this.dataset=i,this.sampleRate=o,this.metadata=a}toJSON(){let e={};return this.timestamp&&(e.time=this.timestamp),this.sampleRate&&(e.samplerate=this.sampleRate),this.postData&&(e.data=this.postData),e}toBrokenJSON(){let e=[];return this.timestamp&&e.push(`"time":${JSON.stringify(this.timestamp)}`),this.sampleRate&&e.push(`"samplerate":${JSON.stringify(this.sampleRate)}`),this.postData&&e.push(`"data":${JSON.stringify(this.postData)}`),`{${e.join(",")}}`}}class A{constructor(e){this.constructorArg=e,this.events=[]}sendEvent(e){this.events.push(e)}sendPresampledEvent(e){this.events.push(e)}reset(){this.constructorArg=null,this.events=[]}}class P{sendEvent(e){console.log(JSON.stringify(e.toBrokenJSON()))}sendPresampledEvent(e){console.log(JSON.stringify(e.toBrokenJSON()))}}class R{sendEvent(e){console.log(JSON.stringify(e))}sendPresampledEvent(e){console.log(JSON.stringify(e))}}class M{sendEvent(e){r.stdout.write(JSON.stringify(e)+"\n")}sendPresampledEvent(e){r.stdout.write(JSON.stringify(e)+"\n")}}class F{sendEvent(e){}sendPresampledEvent(e){}}class N{constructor(e){this._responseCallback=D,this._batchSizeTrigger=50,this._batchTimeTrigger=100,this._maxConcurrentBatches=10,this._pendingWorkCapacity=1e4,this._timeout=6e4,this._sendTimeoutId=-1,this._eventQueue=[],this._batchCount=0,"function"==typeof e.responseCallback&&(this._responseCallback=e.responseCallback),"number"==typeof e.batchSizeTrigger&&(this._batchSizeTrigger=Math.max(e.batchSizeTrigger,1)),"number"==typeof e.batchTimeTrigger&&(this._batchTimeTrigger=e.batchTimeTrigger),"number"==typeof e.maxConcurrentBatches&&(this._maxConcurrentBatches=e.maxConcurrentBatches),"number"==typeof e.pendingWorkCapacity&&(this._pendingWorkCapacity=e.pendingWorkCapacity),"number"==typeof e.timeout&&(this._timeout=e.timeout),this._userAgentAddition=e.userAgentAddition||"",this._proxy=e.proxy,this._randomFn=Math.random}_droppedCallback(e,t){this._responseCallback([{metadata:e.metadata,error:Error(t)}])}sendEvent(e){if(!this._shouldSendEvent(e)){this._droppedCallback(e,"event dropped due to sampling");return}this.sendPresampledEvent(e)}sendPresampledEvent(e){if(this._eventQueue.length>=this._pendingWorkCapacity){this._droppedCallback(e,"queue overflow");return}this._eventQueue.push(e),this._eventQueue.length>=this._batchSizeTrigger?this._sendBatch():this._ensureSendTimeout()}flush(){return 0===this._eventQueue.length&&0===this._batchCount?Promise.resolve():new Promise(e=>{this.flushCallback=()=>{this.flushCallback=null,e()}})}_sendBatch(){if(10===this._batchCount)return;this._clearSendTimeout(),this._batchCount++;let e=new O(this._eventQueue.splice(0,this._batchSizeTrigger)),t=()=>{this._batchCount--;let e=this._eventQueue.length;if(e>0){e>=this._batchSizeTrigger?this._sendBatch():this._ensureSendTimeout();return}0===this._batchCount&&this.flushCallback&&this.flushCallback()};C(Object.keys(e.batches).map(t=>e.batches[t]),t=>{let n,r=_(t.apiHost,"/1/batch",t.dataset);n=Promise.resolve({req:l.default.post(r)});let{encoded:i,numEncoded:o}=e.encodeBatchEvents(t.events);return n.then(({req:e})=>new Promise(n=>{if(0===o){this._responseCallback(t.events.map(e=>({metadata:e.metadata,error:e.encodeError}))),n();return}let r=S,a=this._userAgentAddition.trim();a&&(r=`${S} ${a}`);let s=Date.now();e.set("X-Honeycomb-Team",t.writeKey).set("X-Honeycomb-UserAgent",r).type("json").timeout(this._timeout).send(i).end((e,r)=>{let i=Date.now();if(e)this._responseCallback(t.events.map(t=>({status_code:t.encodeError?void 0:e.status,duration:i-s,metadata:t.metadata,error:t.encodeError||e})));else{let e=JSON.parse(r.text),n=0;this._responseCallback(t.events.map(t=>{if(t.encodeError)return{duration:i-s,metadata:t.metadata,error:t.encodeError};{let r=e[n++];return{status_code:r.status,duration:i-s,metadata:t.metadata,error:r.err}}}))}n()})}))}).then(t).catch(t)}_shouldSendEvent(e){let{sampleRate:t}=e;return t<=1||this._randomFn()<1/t}_ensureSendTimeout(){-1===this._sendTimeoutId&&(this._sendTimeoutId=E.setTimeout(()=>this._sendBatch(),this._batchTimeTrigger))}_clearSendTimeout(){-1!==this._sendTimeoutId&&(E.clearTimeout(this._sendTimeoutId),this._sendTimeoutId=-1)}}function I(e,t){e&&(e instanceof Map?e.forEach(t):Object.getOwnPropertyNames(e).forEach(n=>t(e[n],n)))}class L{constructor(e,t,n){this.data=Object.create(null),this.metadata=null,this.apiHost="",this.writeKey="",this.dataset="",this.sampleRate=1,this.timestamp=null,I(t,(e,t)=>this.addField(t,e)),I(n,(e,t)=>this.addField(t,e())),this._libhoney=e}add(e){return I(e,(e,t)=>this.addField(t,e)),this}addField(e,t){return void 0===t?this.data[e]=null:this.data[e]=t,this}addMetadata(e){return this.metadata=e,this}send(){this._libhoney.sendEvent(this)}sendPresampled(){this._libhoney.sendPresampledEvent(this)}}class B{constructor(e,t,n){this._libhoney=e,this._fields=Object.create(null),this._dynFields=Object.create(null),this.apiHost="",this.writeKey="",this.dataset="",this.sampleRate=1,I(t,(e,t)=>this.addField(t,e)),I(n,(e,t)=>this.addDynamicField(t,e))}add(e){return I(e,(e,t)=>this.addField(t,e)),this}addField(e,t){return void 0===t?this._fields[e]=null:this._fields[e]=t,this}addDynamicField(e,t){return this._dynFields[e]=t,this}sendNow(e){let t=this.newEvent();t.add(e),t.send()}newEvent(){let e=new L(this._libhoney,this._fields,this._dynFields);return e.apiHost=this.apiHost,e.writeKey=this.writeKey,e.dataset=this.dataset,e.sampleRate=this.sampleRate,e}newBuilder(e,t){let n=new B(this._libhoney,this._fields,this._dynFields);return I(e,(e,t)=>n.addField(t,e)),I(t,(e,t)=>n.addDynamicField(t,e)),n.apiHost=this.apiHost,n.writeKey=this.writeKey,n.dataset=this.dataset,n.sampleRate=this.sampleRate,n}}let z=Object.freeze({apiHost:"https://api.honeycomb.io/",proxy:void 0,sampleRate:1,transmission:"base",batchSizeTrigger:50,batchTimeTrigger:100,maxConcurrentBatches:10,pendingWorkCapacity:1e4,maxResponseQueueSize:1e3,timeout:6e4,disabled:!1,userAgentAddition:""});class U extends s.EventEmitter{constructor(e){super(),this._options=Object.assign({responseCallback:this._responseCallback.bind(this)},z,e),this._transmission=$(this._options.transmission,this._options),this._usable=null!==this._transmission,this._builder=new B(this),this._builder.apiHost=this._options.apiHost,this._builder.writeKey=this._options.writeKey,this._builder.dataset=this._options.dataset,this._builder.sampleRate=this._options.sampleRate,this._responseQueue=[]}_responseCallback(e){let[t,n]=[this._responseQueue,this._options.maxResponseQueueSize];this._responseQueue=function(e,t,n){if(e.length>=n)return e.slice(0,n);if(e.length+t.length>n){let r=n-e.length,i=t.slice(0,r);return e.concat(i)}return e.concat(t)}(t,e,n),this.emit("response",this._responseQueue)}get transmission(){return this._transmission}set apiHost(e){this._builder.apiHost=e}get apiHost(){return this._builder.apiHost}set writeKey(e){this._builder.writeKey=e}get writeKey(){return this._builder.writeKey}set dataset(e){this._builder.dataset=e}get dataset(){return this._builder.dataset}set sampleRate(e){this._builder.sampleRate=e}get sampleRate(){return this._builder.sampleRate}sendEvent(e){let t=this.validateEvent(e);t&&this._transmission.sendEvent(t)}sendPresampledEvent(e){let t=this.validateEvent(e);t&&this._transmission.sendPresampledEvent(t)}validateEvent(e){let t;if(!this._usable)return null;let n=e.timestamp||Date.now();if(("string"==typeof n||"number"==typeof n)&&(n=new Date(n)),"object"!=typeof e.data||null===e.data)return console.error(".data must be an object"),null;try{t=JSON.parse(JSON.stringify(e.data))}catch(e){return console.error("error cloning event data: "+e),null}let r=e.apiHost;if("string"!=typeof r||""===r)return console.error(".apiHost must be a non-empty string"),null;let i=e.writeKey;if("string"!=typeof i||""===i)return console.error(".writeKey must be a non-empty string"),null;let o=e.dataset;if("string"!=typeof o||""===o)return console.error(".dataset must be a non-empty string"),null;let a=e.sampleRate;return"number"!=typeof a?(console.error(".sampleRate must be a number"),null):new T({timestamp:n,apiHost:r,postData:t,writeKey:i,dataset:o,sampleRate:a,metadata:e.metadata})}add(e){return this._builder.add(e),this}addField(e,t){return this._builder.addField(e,t),this}addDynamicField(e,t){return this._builder.addDynamicField(e,t),this}sendNow(e){return this._builder.sendNow(e)}newEvent(){return this._builder.newEvent()}newBuilder(e,t){return this._builder.newBuilder(e,t)}flush(){let e=this._transmission;return this._transmission=$(this._options.transmission,this._options),e.flush()}}let q=e=>{switch(e){case"base":return N;case"mock":return A;case"null":return F;case"worker":return console.warn("worker implementation not ready yet. using base implementation"),N;case"writer":return console.warn("writer implementation is deprecated. Please switch to console implementation."),P;case"console":return R;case"stdout":return M;default:throw Error(`unknown transmission implementation "${e}".`)}};function $(e,t){if(t.disabled)return null;if("string"==typeof e)return new(q(e))(t);if("function"!=typeof e)throw Error(".transmission must be one of 'base'/'worker'/'mock'/'writer'/'console'/'stdout'/'null' or a constructor.");try{return new e(t)}catch(n){if(e===N)throw Error("unable to initialize base transmission implementation.",n);console.warn("failed to initialize transmission, falling back to base implementation.");try{return new N(t)}catch(e){throw Error("unable to initialize base transmission implementation.",e)}}}e.exports=U},80594:function(e,t,n){var r=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=l||c||Function("return this")(),h=Object.prototype.toString,p=Math.max,f=Math.min,m=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return r;if(g(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=g(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var l=a.test(e);return l||s.test(e)?u(e.slice(2),l?2:8):o.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,s,u,l=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function b(e){var n=e-u,r=e-l;return void 0===u||n>=t||n<0||d&&r>=o}function w(){var e,n,r,i=m();if(b(i))return k(i);s=setTimeout(w,(e=i-u,n=i-l,r=t-e,d?f(r,o-n):r))}function k(e){return(s=void 0,h&&r)?y(e):(r=i=void 0,a)}function x(){var e,n=m(),o=b(n);if(r=arguments,i=this,u=n,o){if(void 0===s)return l=e=u,s=setTimeout(w,t),c?y(e):a;if(d)return s=setTimeout(w,t),y(u)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,g(n)&&(c=!!n.leading,o=(d="maxWait"in n)?p(v(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),x.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},x.flush=function(){return void 0===s?a:k(m())},x}},63637:function(e,t,n){e=n.nmd(e);var r,i,o,a,s,u,l,c,d,h,p,f="__lodash_hash_undefined__",m="[object Arguments]",g="[object Function]",v="[object Object]",y=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[m]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[g]=w["[object Map]"]=w["[object Number]"]=w[v]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,x="object"==typeof self&&self&&self.Object===Object&&self,_=k||x||Function("return this")(),S=t&&!t.nodeType&&t,E=S&&e&&!e.nodeType&&e,D=E&&E.exports===S,C=D&&k.process,j=function(){try{var e=E&&E.require&&E.require("util").types;if(e)return e;return C&&C.binding&&C.binding("util")}catch(e){}}(),O=j&&j.isTypedArray,T=Array.prototype,A=Function.prototype,P=Object.prototype,R=_["__core-js_shared__"],M=A.toString,F=P.hasOwnProperty,N=(l=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",I=P.toString,L=M.call(Object),B=RegExp("^"+M.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=D?_.Buffer:void 0,U=_.Symbol,q=_.Uint8Array,$=z?z.allocUnsafe:void 0,H=(c=Object.getPrototypeOf,d=Object,function(e){return c(d(e))}),W=Object.create,V=P.propertyIsEnumerable,G=T.splice,Y=U?U.toStringTag:void 0,Z=function(){try{var e=ep(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),K=z?z.isBuffer:void 0,J=Math.max,X=Date.now,Q=ep(_,"Map"),ee=ep(Object,"create"),et=function(){function e(){}return function(t){if(!eE(t))return{};if(W)return W(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function en(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},er.prototype.set=function(e,t){var n=this.__data__,r=es(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ei.prototype.clear=function(){this.size=0,this.__data__={hash:new en,map:new(Q||er),string:new en}},ei.prototype.delete=function(e){var t=eh(this,e).delete(e);return this.size-=t?1:0,t},ei.prototype.get=function(e){return eh(this,e).get(e)},ei.prototype.has=function(e){return eh(this,e).has(e)},ei.prototype.set=function(e,t){var n=eh(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},eo.prototype.clear=function(){this.__data__=new er,this.size=0},eo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eo.prototype.get=function(e){return this.__data__.get(e)},eo.prototype.has=function(e){return this.__data__.has(e)},eo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof er){var r=n.__data__;if(!Q||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ei(r)}return n.set(e,t),this.size=n.size,this};var el=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function ec(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=F.call(e,Y),n=e[Y];try{e[Y]=void 0;var r=!0}catch(e){}var i=I.call(e);return r&&(t?e[Y]=n:delete e[Y]),i}(e):I.call(e)}function ed(e){return eD(e)&&ec(e)==m}function eh(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function ep(e,t){var n=null==e?void 0:e[t];return!(!eE(n)||N&&N in n)&&(e_(n)?B:y).test(function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(n))?n:void 0}function ef(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&b.test(e))&&e>-1&&e%1==0&&e0){if(++i>=800)return arguments[0]}else i=0;return r.apply(void 0,arguments)});function ey(e,t){return e===t||e!=e&&t!=t}var eb=ed(function(){return arguments}())?ed:function(e){return eD(e)&&F.call(e,"callee")&&!V.call(e,"callee")},ew=Array.isArray;function ek(e){return null!=e&&eS(e.length)&&!e_(e)}var ex=K||function(){return!1};function e_(e){if(!eE(e))return!1;var t=ec(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eS(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eE(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eD(e){return null!=e&&"object"==typeof e}var eC=O?function(e){return O(e)}:function(e){return eD(e)&&eS(e.length)&&!!w[ec(e)]};function ej(e){return ek(e)?function(e,t){var n=ew(e),r=!n&&eb(e),i=!n&&!r&&ex(e),o=!n&&!r&&!i&&eC(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=h.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!eE(n))return!1;var r=typeof t;return("number"==r?!!(ek(n)&&ef(t,n.length)):"string"==r&&(t in n))&&ey(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n=t||n<0||h&&r>=a}function k(){var e,n,r,i=g();if(w(i))return x(i);u=setTimeout(k,(e=i-l,n=i-c,r=t-e,h?m(r,a-n):r))}function x(e){return(u=void 0,p&&i)?b(e):(i=o=void 0,s)}function _(){var e,n=g(),r=w(n);if(i=arguments,o=this,l=n,r){if(void 0===u)return c=e=l,u=setTimeout(k,t),d?b(e):s;if(h)return u=setTimeout(k,t),b(l)}return void 0===u&&(u=setTimeout(k,t)),s}return t=y(t)||0,v(n)&&(d=!!n.leading,a=(h="maxWait"in n)?f(y(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==u&&clearTimeout(u),c=0,i=l=o=u=void 0},_.flush=function(){return void 0===u?s:x(g())},_}(e,t,{leading:i,maxWait:t,trailing:o})}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=t?e:t)),e}},18874:function(e,t,n){var r=n(86571),i=n(72517),o=n(60091),a=n(67993),s=n(55906),u=n(92175),l=n(51522),c=n(7680),d=n(19987),h=n(13483),p=n(76939),f=n(70940),m=n(99917),g=n(8222),v=n(78725),y=n(86152),b=n(73226),w=n(4714),k=n(29259),x=n(30194),_=n(90249),S=n(18582),E="[object Arguments]",D="[object Function]",C="[object Object]",j={};j[E]=j["[object Array]"]=j["[object ArrayBuffer]"]=j["[object DataView]"]=j["[object Boolean]"]=j["[object Date]"]=j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Map]"]=j["[object Number]"]=j[C]=j["[object RegExp]"]=j["[object Set]"]=j["[object String]"]=j["[object Symbol]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j["[object Error]"]=j[D]=j["[object WeakMap]"]=!1,e.exports=function e(t,n,O,T,A,P){var R,M=1&n,F=2&n,N=4&n;if(O&&(R=A?O(t,T,A,P):O(t)),void 0!==R)return R;if(!k(t))return t;var I=y(t);if(I){if(R=m(t),!M)return l(t,R)}else{var L=f(t),B=L==D||"[object GeneratorFunction]"==L;if(b(t))return u(t,M);if(L==C||L==E||B&&!A){if(R=F||B?{}:v(t),!M)return F?d(t,s(R,t)):c(t,a(R,t))}else{if(!j[L])return A?t:{};R=g(t,L,M)}}P||(P=new r);var z=P.get(t);if(z)return z;P.set(t,R),x(t)?t.forEach(function(r){R.add(e(r,n,O,r,t,P))}):w(t)&&t.forEach(function(r,i){R.set(i,e(r,n,O,i,t,P))});var U=N?F?p:h:F?S:_,q=I?void 0:U(t);return i(q||t,function(r,i){q&&(r=t[i=r]),o(R,i,e(r,n,O,i,t,P))}),R}},39413:function(e,t,n){var r=n(29259),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},85246:function(e,t,n){var r=n(45386),i=n(38333),o=n(34893),a=n(50343),s=n(47826),u=n(59950);e.exports=function(e,t,n,l){var c=-1,d=i,h=!0,p=e.length,f=[],m=t.length;if(!p)return f;n&&(t=a(t,s(n))),l?(d=o,h=!1):t.length>=200&&(d=u,h=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&nt}},32726:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},20187:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},77832:function(e,t,n){var r=n(21359),i=n(22195),o=n(66024);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},84190:function(e){e.exports=function(e,t,n,r){for(var i=n-1,o=e.length;++i-1;)p!==e&&u.call(p,f,1),u.call(e,f,1);return e}},5809:function(e){var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},93228:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},36060:function(e,t,n){var r=n(23059),i=n(43114),o=n(75251);e.exports=function(e,t){return o(i(e,t,r),e+"")}},46543:function(e,t,n){var r=n(33977),i=n(98346);e.exports=function(e){return r(i(e))}},82857:function(e,t,n){var r=n(60091),i=n(17297),o=n(39045),a=n(29259),s=n(33812);e.exports=function(e,t,n,u){if(!a(e))return e;t=i(t,e);for(var l=-1,c=t.length,d=c-1,h=e;null!=h&&++li?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return u(m);h=!1,c=a,f=new r}else f=t?[]:p;t:for(;++l=i?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o)return 1;if(!i&&!a&&!c&&e=u)return l;return l*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var h=u.get(e),p=u.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++f-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},85876:function(e,t,n){var r=n(5809);e.exports=function(e,t){var n=-1,i=e.length,o=i-1;for(t=void 0===t?i:t;++n=t||n<0||g&&r>=c}function w(){var e,n,r,o=i();if(b(o))return k(o);h=setTimeout(w,(e=o-p,n=o-f,r=t-e,g?s(r,c-n):r))}function k(e){return(h=void 0,v&&u)?y(e):(u=l=void 0,d)}function x(){var e,n=i(),r=b(n);if(u=arguments,l=this,p=n,r){if(void 0===h)return f=e=p,h=setTimeout(w,t),m?y(e):d;if(g)return clearTimeout(h),h=setTimeout(w,t),y(p)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(o(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),f=0,u=p=l=h=void 0},x.flush=function(){return void 0===h?d:k(i())},x}},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},12982:function(e,t,n){var r=n(21359),i=n(68286),o=n(38101),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return -1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(e,i(t,3),u)}},35838:function(e,t,n){var r=n(62034),i=n(16760);e.exports=function(e,t){return r(i(e,t),1)}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},93493:function(e,t,n){var r=n(77832),i=n(38101),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return -1;var s=null==n?0:i(n);return s<0&&(s=o(a+s,0)),r(e,t,s)}},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=s?s.isBuffer:void 0;e.exports=u||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},55461:function(e,t,n){var r=n(37036),i=n(49882);e.exports=function(e,t,n){return n="function"==typeof n?n:void 0,r(e,t,i(t),n)}},1842:function(e){e.exports=function(e){return null==e}},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},40859:function(e,t,n){var r=n(24333),i=n(47826),o=n(4146),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},30194:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},87622:function(e,t,n){var r=n(13940),i=n(36740)(function(e,t,n){r(e,n,t)});e.exports=i},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},16760:function(e,t,n){var r=n(50343),i=n(68286),o=n(93401),a=n(86152);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},71644:function(e,t,n){var r=n(2229),i=n(84134),o=n(23059);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),u=n(48642),l=n(29097),c=n(76939),d=l(function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),n),l&&(n=i(n,7,u));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},34498:function(e,t,n){var r=n(23813),i=n(86152);e.exports=function(e,t,n,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},2284:function(e,t,n){var r=n(36060)(n(78911));e.exports=r},78911:function(e,t,n){var r=n(45169);e.exports=function(e,t){return e&&e.length&&t&&t.length?r(e,t):e}},62349:function(e,t,n){var r=n(5809),i=n(82406),o=n(5707),a=parseFloat,s=Math.min,u=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var l=e;e=t,t=l}if(n||e%1||t%1){var c=u();return s(e+c*(t-e+a("1e-"+((c+"").length-1))),t)}return r(e,t)}},2689:function(e,t,n){var r=n(82941)();e.exports=r},68015:function(e,t,n){var r=n(67320)("round");e.exports=r},4742:function(e,t,n){var r=n(33977),i=n(46543),o=n(86152);e.exports=function(e){return(o(e)?r:i)(e)}},16765:function(e,t,n){var r=n(82857);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},46152:function(e,t,n){var r=n(69918),i=n(12682),o=n(86152);e.exports=function(e){return(o(e)?r:i)(e)}},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},5707:function(e,t,n){var r=n(7642),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},38101:function(e,t,n){var r=n(5707);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},7642:function(e,t,n){var r=n(51704),i=n(29259),o=n(4795),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},63329:function(e,t,n){var r=n(752),i=n(18582);e.exports=function(e){return r(e,i(e))}},66188:function(e,t,n){var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},36585:function(e,t,n){var r=n(1054),i=n(23895),o=n(33880),a=n(29259),s=n(40859),u=n(82302),l=n(8435),c=n(38101),d=n(66188),h=/\w*$/;e.exports=function(e,t){var n=30,p="...";if(a(t)){var f="separator"in t?t.separator:f;n="length"in t?c(t.length):n,p="omission"in t?r(t.omission):p}var m=(e=d(e)).length;if(o(e)){var g=l(e);m=g.length}if(n>=m)return e;var v=n-u(p);if(v<1)return p;var y=g?i(g,0,v).join(""):e.slice(0,v);if(void 0===f)return y+p;if(g&&(v+=y.length-v),s(f)){if(e.slice(v).search(f)){var b,w=y;for(f.global||(f=RegExp(f.source,d(h.exec(f))+"g")),f.lastIndex=0;b=f.exec(w);)var k=b.index;y=y.slice(0,void 0===k?v:k)}}else if(e.indexOf(r(f),v)!=v){var x=y.lastIndexOf(f);x>-1&&(y=y.slice(0,x))}return y+p}},75652:function(e,t,n){var r=n(67326);e.exports=function(e){return e&&e.length?r(e):[]}},84636:function(e,t,n){var r=n(68286),i=n(67326);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},17195:function(e,t,n){var r=n(29078);e.exports=function(e,t){return null==e||r(e,t)}},23779:function(e,t,n){var r=n(83126)("toUpperCase");e.exports=r},98346:function(e,t,n){var r=n(50753),i=n(90249);e.exports=function(e){return null==e?[]:r(e,i(e))}},67304:function(e,t,n){var r=n(85246),i=n(36060),o=n(93746),a=i(function(e,t){return o(e)?r(e,t):[]});e.exports=a},11618:function(e,t,n){var r=n(45981),i=n(83559),o=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},53207:function(e,t,n){var r=n(96570);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;nf.length-2?f.length-1:e.length-u;n>0;n--)if(void 0!==f[n])for(i=0;i0&&S<_.length-1&&1===_[S+1].type&&(1===_[S-1].type||6===_[S-1].type))throw new r.Exception("Unexpected Space");continue}var C=D.token,j=D.type,O=D.value,T=D.precedence,A=D.show,P=n[n.length-1];for(E=a.length;E--&&0===a[E];)if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(j)){if(!0!==s[j])throw new r.Exception(C+" is not allowed after "+k);n.push(v),s=l,w=h,a.pop()}if(!0!==s[j])throw new r.Exception(C+" is not allowed after "+k);if(!0===w[j]&&(j=2,O=r.math.mul,A="×",T=3,S-=1),x={value:O,type:j,pre:T,show:A,numberOfArguments:D.numberOfArguments},0===j)s=u,w=d,i(a,2),n.push(x),4!==_[S+1].type&&(n.push(y),a.push(2));else if(1===j)1===P.type?(P.value+=O,i(a,1)):n.push(x),s=l,w=c;else if(2===j)s=u,w=d,i(a,2),n.push(x);else if(3===j)n.push(x),s=l,w=h;else if(4===j)i(a,1),b++,s=u,w=d,n.push(x);else if(5===j){if(!b)throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");b--,s=l,w=h,n.push(x),i(a,1)}else if(6===j){if(P.hasDec)throw new r.Exception("Two decimals are not allowed in one number");1!==P.type&&(P={value:0,type:1,pre:0},n.push(P)),s=p,i(a,1),w=d,P.value+=O,P.hasDec=!0}else 7===j&&(s=l,w=h,i(a,1),n.push(x));8===j?(s=u,w=d,i(a,D.numberOfArguments+2),n.push(x),4!==_[S+1].type&&(n.push(y),a.push(D.numberOfArguments+2))):9===j?(9===P.type?P.value===r.math.add?(P.value=O,P.show=A,i(a,1)):P.value===r.math.sub&&"-"===A&&(P.value=r.math.add,P.show="+",i(a,1)):5!==P.type&&7!==P.type&&1!==P.type&&3!==P.type&&13!==P.type?"-"===C&&(s=u,w=d,i(a,2).push(2),n.push(g),n.push(y)):(n.push(x),i(a,2)),s=u,w=d):10===j?(s=u,w=d,i(a,2),n.push(x)):11===j?(s=u,w=d,n.push(x)):12===j?(s=u,w=d,i(a,6),n.push(x),4!==_[S+1].type&&(n.push(y),a.push(6))):13===j&&(s=l,w=h,n.push(x)),i(a,-1),k=C}for(E=a.length;E--;)n.push(v);if(!0!==s[5])throw new r.Exception("complete the expression");for(;b--;)n.push(v);return n.push(v),new r(n)},e.exports=r},72346:function(e){"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var r=1,i=e-n,o=n;on)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},34752:function(e,t,n){var r=n(78477),i=/[\/\+\.]/;e.exports=function(e,t){function n(t){var n=r(t,e,i);return n&&n.length>=2}return t?n(t.split(";")[0]):n}},5450:function(e){e.exports=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,o,a,s){var u=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),i=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],o=Object.keys(t),a=0,s=o.length;a1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},49152:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(79151),i=n(18e3),o=n(23160);function a(e,t){(0,o.Z)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,u=null==s?0:(0,r.Z)(s),l=null==n.weekStartsOn?u:(0,r.Z)(n.weekStartsOn);if(!(l>=0&&l<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=(0,i.Z)(e),d=c.getUTCDay();return c.setUTCDate(c.getUTCDate()-((d0?1:a}},32895:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(18e3),i=n(23160),o=n(41173),a=n(54806);function s(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return s("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):s(n+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return s(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}};function l(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function c(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var a=l(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var u=l(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}var d=n(49152),h=n(79151);function p(e,t){(0,i.Z)(1,arguments);var n=(0,r.Z)(e,t),o=n.getUTCFullYear(),a=t||{},s=a.locale,u=s&&s.options&&s.options.firstWeekContainsDate,l=null==u?1:(0,h.Z)(u),c=null==a.firstWeekContainsDate?l:(0,h.Z)(a.firstWeekContainsDate);if(!(c>=1&&c<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(o+1,0,c),p.setUTCHours(0,0,0,0);var f=(0,d.Z)(p,t),m=new Date(0);m.setUTCFullYear(o,0,c),m.setUTCHours(0,0,0,0);var g=(0,d.Z)(m,t);return n.getTime()>=f.getTime()?o+1:n.getTime()>=g.getTime()?o:o-1}var f={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+s(o,2)}function g(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):v(e,t)}function v(e,t){var n=Math.abs(e);return(e>0?"-":"+")+s(Math.floor(n/60),2)+(t||"")+s(n%60,2)}var y={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return u.y(e,t)},Y:function(e,t,n,r){var i=p(e,r),o=i>0?i:1-i;return"YY"===t?s(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){return s(c(e),t.length)},u:function(e,t){return s(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return u.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){var a=function(e,t){(0,i.Z)(1,arguments);var n=(0,r.Z)(e);return Math.round(((0,d.Z)(n,t).getTime()-(function(e,t){(0,i.Z)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:(0,h.Z)(o),s=null==n.firstWeekContainsDate?a:(0,h.Z)(n.firstWeekContainsDate),u=p(e,t),l=new Date(0);return l.setUTCFullYear(u,0,s),l.setUTCHours(0,0,0,0),(0,d.Z)(l,t)})(n,t).getTime())/6048e5)+1}(e,o);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,n){var o=function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return Math.round((l(t).getTime()-(function(e){(0,i.Z)(1,arguments);var t=c(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),l(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):s(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.d(e,t)},D:function(e,t,n){var o=function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):s(o,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?f.noon:0===i?f.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?f.evening:i>=12?f.afternoon:i>=4?f.morning:f.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return u.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.s(e,t)},S:function(e,t){return u.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return g(i);case"XXXX":case"XX":return v(i);default:return v(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return g(i);case"xxxx":case"xx":return v(i);default:return v(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+v(i,":")}},t:function(e,t,n,r){return s(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return s((r._originalDate||e).getTime(),t.length)}};function b(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function w(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var k={p:w,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return b(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",b(i,t)).replace("{{time}}",w(o,t))}},x=n(26505),_=["D","DD"],S=["YY","YYYY"];function E(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,C=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j=/^'([^]*?)'?$/,O=/''/g,T=/[a-zA-Z]/;function A(e,t,n){(0,i.Z)(2,arguments);var s=String(t),u=n||{},l=u.locale||o.Z,c=l.options&&l.options.firstWeekContainsDate,d=null==c?1:(0,h.Z)(c),p=null==u.firstWeekContainsDate?d:(0,h.Z)(u.firstWeekContainsDate);if(!(p>=1&&p<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=l.options&&l.options.weekStartsOn,m=null==f?0:(0,h.Z)(f),g=null==u.weekStartsOn?m:(0,h.Z)(u.weekStartsOn);if(!(g>=0&&g<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!l.localize)throw RangeError("locale must contain localize property");if(!l.formatLong)throw RangeError("locale must contain formatLong property");var v=(0,r.Z)(e);if(!function(e){return(0,i.Z)(1,arguments),!isNaN((0,r.Z)(e))}(v))throw RangeError("Invalid time value");var b=(0,x.Z)(v),w=(0,a.Z)(v,b),A={firstWeekContainsDate:p,weekStartsOn:g,locale:l,_originalDate:v};return s.match(C).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,k[t])(e,l.formatLong,A):e}).join("").match(D).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(j)[1].replace(O,"'");var i=y[r];if(i)return u.useAdditionalWeekYearTokens||-1===S.indexOf(n)||E(n,t,e),u.useAdditionalDayOfYearTokens||-1===_.indexOf(n)||E(n,t,e),i(w,n,l.localize,A);if(r.match(T))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}},14292:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(77154),i=n(18e3),o=n(23160),a=n(41173),s=n(82595),u=n(26505);function l(e,t){var n,l,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.Z)(2,arguments);var h=d.locale||a.Z;if(!h.formatDistance)throw RangeError("locale must contain formatDistance property");var p=(0,r.Z)(e,t);if(isNaN(p))throw RangeError("Invalid time value");var f=(0,s.Z)(d);f.addSuffix=!!d.addSuffix,f.comparison=p,p>0?(n=(0,i.Z)(t),l=(0,i.Z)(e)):(n=(0,i.Z)(e),l=(0,i.Z)(t));var m=function(e,t){(0,o.Z)(2,arguments);var n=function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),r=(0,i.Z)(t);return n.getTime()-r.getTime()}(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}(l,n),g=Math.round((m-((0,u.Z)(l)-(0,u.Z)(n))/1e3)/60);if(g<2){if(d.includeSeconds){if(m<5)return h.formatDistance("lessThanXSeconds",5,f);if(m<10)return h.formatDistance("lessThanXSeconds",10,f);if(m<20)return h.formatDistance("lessThanXSeconds",20,f);if(m<40)return h.formatDistance("halfAMinute",null,f);else if(m<60)return h.formatDistance("lessThanXMinutes",1,f);else return h.formatDistance("xMinutes",1,f)}return 0===g?h.formatDistance("lessThanXMinutes",1,f):h.formatDistance("xMinutes",g,f)}if(g<45)return h.formatDistance("xMinutes",g,f);if(g<90)return h.formatDistance("aboutXHours",1,f);if(g<1440){var v=Math.round(g/60);return h.formatDistance("aboutXHours",v,f)}if(g<2520)return h.formatDistance("xDays",1,f);if(g<43200){var y=Math.round(g/1440);return h.formatDistance("xDays",y,f)}if(g<86400)return c=Math.round(g/43200),h.formatDistance("aboutXMonths",c,f);if((c=function(e,t){(0,o.Z)(2,arguments);var n,a=(0,i.Z)(e),s=(0,i.Z)(t),u=(0,r.Z)(a,s),l=Math.abs(function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),r=(0,i.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(a,s));if(l<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-u*l);var c=(0,r.Z)(a,s)===-u;(function(e){(0,o.Z)(1,arguments);var t=(0,i.Z)(e);return(function(e){(0,o.Z)(1,arguments);var t=(0,i.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,o.Z)(1,arguments);var t=(0,i.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,i.Z)(e))&&1===l&&1===(0,r.Z)(e,s)&&(c=!1),n=u*(l-Number(c))}return 0===n?0:n}(l,n))<12){var b=Math.round(g/43200);return h.formatDistance("xMonths",b,f)}var w=c%12,k=Math.floor(c/12);return w<3?h.formatDistance("aboutXYears",k,f):w<9?h.formatDistance("overXYears",k,f):h.formatDistance("almostXYears",k+1,f)}},96301:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(26505),i=n(77154),o=n(18e3),a=n(82595),s=n(41173),u=n(23160);function l(e,t){return(0,u.Z)(1,arguments),function(e,t){var n,l,c,d,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,u.Z)(2,arguments);var p=h.locale||s.Z;if(!p.formatDistance)throw RangeError("locale must contain localize.formatDistance property");var f=(0,i.Z)(e,t);if(isNaN(f))throw RangeError("Invalid time value");var m=(0,a.Z)(h);m.addSuffix=!!h.addSuffix,m.comparison=f,f>0?(n=(0,o.Z)(t),l=(0,o.Z)(e)):(n=(0,o.Z)(e),l=(0,o.Z)(t));var g=null==h.roundingMethod?"round":String(h.roundingMethod);if("floor"===g)c=Math.floor;else if("ceil"===g)c=Math.ceil;else if("round"===g)c=Math.round;else throw RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var v=l.getTime()-n.getTime(),y=v/6e4,b=(v-((0,r.Z)(l)-(0,r.Z)(n)))/6e4;if("second"===(d=null==h.unit?y<1?"second":y<60?"minute":y<1440?"hour":b<43200?"day":b<525600?"month":"year":String(h.unit))){var w=c(v/1e3);return p.formatDistance("xSeconds",w,m)}if("minute"===d){var k=c(y);return p.formatDistance("xMinutes",k,m)}if("hour"===d){var x=c(y/60);return p.formatDistance("xHours",x,m)}if("day"===d){var _=c(b/1440);return p.formatDistance("xDays",_,m)}if("month"===d){var S=c(b/43200);return 12===S&&"month"!==h.unit?p.formatDistance("xYears",1,m):p.formatDistance("xMonths",S,m)}if("year"===d){var E=c(b/525600);return p.formatDistance("xYears",E,m)}throw RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(e,Date.now(),t)}},74820:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(26505),i=n(28484),o=n(23160),a=n(32895),s=n(41173),u=n(54806),l=n(18e3);function c(e,t,n){(0,o.Z)(2,arguments);var c,d=(0,l.Z)(e),h=(0,l.Z)(t),p=n||{},f=p.locale,m=void 0===f?s.Z:f,g=p.weekStartsOn,v=void 0===g?0:g;if(!m.localize)throw RangeError("locale must contain localize property");if(!m.formatLong)throw RangeError("locale must contain formatLong property");if(!m.formatRelative)throw RangeError("locale must contain formatRelative property");var y=function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,i.Z)(t);return Math.round((n.getTime()-(0,r.Z)(n)-(a.getTime()-(0,r.Z)(a)))/864e5)}(d,h);if(isNaN(y))throw RangeError("Invalid time value");c=y<-6?"other":y<-1?"lastWeek":y<0?"yesterday":y<1?"today":y<2?"tomorrow":y<7?"nextWeek":"other";var b=(0,u.Z)(d,(0,r.Z)(d)),w=(0,u.Z)(h,(0,r.Z)(h)),k=m.formatRelative(c,b,w,{locale:m,weekStartsOn:v});return(0,a.Z)(d,k,{locale:m,weekStartsOn:v})}},44375:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(28484),i=n(23160);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getTime()===o.getTime()}},97495:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(44375),i=n(23160);function o(e){return(0,i.Z)(1,arguments),(0,r.Z)(e,Date.now())}},85037:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(44375),i=n(38322),o=n(23160);function a(e){return(0,o.Z)(1,arguments),(0,r.Z)(e,(0,i.Z)(Date.now(),1))}},38591:function(e,t,n){"use strict";function r(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}n.d(t,{Z:function(){return r}})},23275:function(e,t,n){"use strict";function r(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=i.width?String(i.width):e.defaultWidth;r=e.values[u]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}n.d(t,{Z:function(){return r}})},13284:function(e,t,n){"use strict";function r(e){return function(t,n){var r,i=String(t),o=n||{},a=o.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],u=i.match(s);if(!u)return null;var l=u[0],c=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth];return r="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;n0?"في خلال "+i:"منذ "+i:i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:{ordinalNumber:(0,l.Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},41173:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},s=n(23275),u={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.Z)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},l=n(22426),c=n(13284),d={code:"en-US",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:{ordinalNumber:(0,l.Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},68630:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 d\xeda",other:"{{count}} d\xedas"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 a\xf1o",other:"alrededor de {{count}} a\xf1os"},xYears:{one:"1 a\xf1o",other:"{{count}} a\xf1os"},overXYears:{one:"m\xe1s de 1 a\xf1o",other:"m\xe1s de {{count}} a\xf1os"},almostXYears:{one:"casi 1 a\xf1o",other:"casi {{count}} a\xf1os"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'el' eeee 'pasado a la' LT",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'ma\xf1ana a la' p",nextWeek:"eeee 'a la' p",other:"P"},s={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'ma\xf1ana a las' p",nextWeek:"eeee 'a las' p",other:"P"},u=n(23275),l={ordinalNumber:function(e){return Number(e)+"\xba"},era:(0,u.Z)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despu\xe9s de cristo"]},defaultWidth:"wide"}),quarter:(0,u.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,u.Z)({values:{narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},defaultWidth:"wide"}),day:(0,u.Z)({values:{narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sa"],abbreviated:["dom","lun","mar","mi\xe9","jue","vie","s\xe1b"],wide:["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,u.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"ma\xf1ana",afternoon:"tarde",evening:"tarde",night:"noche"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la ma\xf1ana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},defaultFormattingWidth:"wide"})},c=n(22426),d=n(13284),h={code:"es",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"en "+i:"hace "+i:i},formatLong:o,formatRelative:function(e,t,n,r){return 1!==t.getUTCHours()?s[e]:a[e]},localize:l,match:{ordinalNumber:(0,c.Z)({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,d.Z)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:"any"}),quarter:(0,d.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,d.Z)({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:"any"}),day:(0,d.Z)({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|sa)/i,abbreviated:/^(dom|lun|mar|mie|jue|vie|sab)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,d.Z)({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}}},78683:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},s=n(23275),u={ordinalNumber:function(e){return String(e)},era:(0,s.Z)({values:{narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultWidth:"wide",formattingValues:{narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},defaultFormattingWidth:"wide"})},l=n(22426),c=n(13284),d={code:"fa-IR",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"در "+i:i+" قبل":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:{ordinalNumber:(0,l.Z)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^قبل/i,/^بعد/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},defaultParseWidth:"any"})},options:{weekStartsOn:6,firstWeekContainsDate:1}}},75568:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd’hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},s=n(23275),u={ordinalNumber:function(e,t){var n,r=Number(e),i=String((t||{}).unit);return 0===r?r:(n="year"===i||"hour"===i||"week"===i?1===r?"\xe8re":"\xe8me":1===r?"er":"\xe8me",r+n)},era:(0,s.Z)({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},l=n(22426),c=n(13284),d={code:"fr",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"dans "+i:"il y a "+i:i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:{ordinalNumber:(0,l.Z)({matchPattern:/^(\d+)(ième|ère|ème|er|e)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](er|ème|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},27248:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},s=n(23275),u={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return"date"===r?n+"日":"year"===r?n+"年":n},era:(0,s.Z)({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})},l=n(22426),c=n(13284),d={code:"ja",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?n.addSuffix&&r[e].oneWithSuffix?r[e].oneWithSuffix:r[e].one:n.addSuffix&&r[e].otherWithSuffix?r[e].otherWithSuffix.replace("{{count}}",t):r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+"後":i+"前":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:{ordinalNumber:(0,l.Z)({matchPattern:/^第?\d+(日)?(年)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},58563:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},s=n(23275),u={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"minute":case"second":return n;case"date":return n+"일";default:return n+"번째"}},era:(0,s.Z)({values:{narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultWidth:"wide",formattingValues:{narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},defaultFormattingWidth:"wide"})},l=n(22426),c=n(13284),d={code:"ko",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+" 후":i+" 전":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:{ordinalNumber:(0,l.Z)({matchPattern:/^(\d+)(일|번째)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(bc|기원전)/i,/^(ad|서기)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},defaultMatchWidth:"wide",parsePatterns:{any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},24537:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:function(e,t,n){var r=e.getUTCDay();return"'"+(0===r||6===r?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},s=n(23275),u={ordinalNumber:function(e,t){var n=Number(e),r=String((t||{}).unit);return"week"===r||"isoWeek"===r?n+"\xaa":n+"\xba"},era:(0,s.Z)({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},l=n(13284),c={code:"pt-BR",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?"em "+i:"h\xe1 "+i:i},formatLong:o,formatRelative:function(e,t,n,r){var i=a[e];return"function"==typeof i?i(t,n,r):i},localize:u,match:{ordinalNumber:(0,n(22426).Z)({matchPattern:/^(\d+)[ºªo]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,l.Z)({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:(0,l.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,l.Z)({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:(0,l.Z)({matchPatterns:{narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},defaultParseWidth:"any"}),dayPeriod:(0,l.Z)({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},43104:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a=n(49152),s=n(23160);function u(e,t,n,r){return!function(e,t,n){(0,s.Z)(2,arguments);var r=(0,a.Z)(e,n),i=(0,a.Z)(t,n);return r.getTime()===i.getTime()}(e,t,n)?e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r:r}var l={lastWeek:u,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:u,other:"PP p"},c=n(23275),d={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:(0,c.Z)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,c.Z)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻钟","第二刻钟","第三刻钟","第四刻钟"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,c.Z)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,c.Z)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,c.Z)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},defaultFormattingWidth:"wide"})},h=n(22426),p=n(13284),f={code:"zh-CN",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+"内":i+"前":i},formatLong:o,formatRelative:function(e,t,n,r){var i=l[e];return"function"==typeof i?i(t,n,r,"eeee p"):i},localize:d,match:{ordinalNumber:(0,h.Z)({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,p.Z)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,p.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,p.Z)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,p.Z)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,p.Z)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},16890:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},i=n(38591),o={date:(0,i.Z)({formats:{full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},defaultWidth:"full"}),time:(0,i.Z)({formats:{full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},defaultWidth:"full"}),dateTime:(0,i.Z)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},a={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},s=n(23275),u={ordinalNumber:function(e,t){var n=Number(e);switch(String((t||{}).unit)){case"date":return n.toString()+"日";case"hour":return n.toString()+"時";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},era:(0,s.Z)({values:{narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},defaultWidth:"wide"}),quarter:(0,s.Z)({values:{narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:(0,s.Z)({values:{narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},defaultWidth:"wide"}),day:(0,s.Z)({values:{narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},defaultWidth:"wide"}),dayPeriod:(0,s.Z)({values:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultWidth:"wide",formattingValues:{narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},defaultFormattingWidth:"wide"})},l=n(22426),c=n(13284),d={code:"zh-TW",formatDistance:function(e,t,n){var i;return(n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix)?n.comparison>0?i+"內":i+"前":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:u,match:{ordinalNumber:(0,l.Z)({matchPattern:/^(第\s*)?\d+(日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,c.Z)({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:"any"}),quarter:(0,c.Z)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,c.Z)({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},defaultParseWidth:"any"}),day:(0,c.Z)({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:"wide",parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:"any"}),dayPeriod:(0,c.Z)({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},1997:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(79151),i=n(23160),o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e,t){(0,i.Z)(1,arguments);var n,l,f=t||{},m=null==f.additionalDigits?2:(0,r.Z)(f.additionalDigits);if(2!==m&&1!==m&&0!==m)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var g=function(e){var t,n={},r=e.split(o.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],o.timeZoneDelimiter.test(n.date)&&(n.date=e.split(o.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=o.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(g.date){var v=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),o=r[2]&&parseInt(r[2]);return{year:null==o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(g.date,m);n=function(e,t){if(null===t)return null;var n,r,i=e.match(a);if(!i)return null;var o=!!i[4],s=c(i[1]),u=c(i[2])-1,l=c(i[3]),d=c(i[4]),f=c(i[5])-1;if(o)return d>=1&&d<=53&&f>=0&&f<=6?((n=new Date(0)).setUTCFullYear(t,0,4),r=n.getUTCDay()||7,n.setUTCDate(n.getUTCDate()+((d-1)*7+f+1-r)),n):new Date(NaN);var m=new Date(0);return u>=0&&u<=11&&l>=1&&l<=(h[u]||(p(t)?29:28))&&s>=1&&s<=(p(t)?366:365)?(m.setUTCFullYear(t,u,Math.max(s,l)),m):new Date(NaN)}(v.restDateString,v.year)}if(isNaN(n)||!n)return new Date(NaN);var y=n.getTime(),b=0;if(g.time&&(isNaN(b=function(e){var t=e.match(s);if(!t)return null;var n=d(t[1]),r=d(t[2]),i=d(t[3]);return(24===n?0===r&&0===i:i>=0&&i<60&&r>=0&&r<60&&n>=0&&n<25)?36e5*n+6e4*r+1e3*i:NaN}(g.time))||null===b))return new Date(NaN);if(g.timezone){if(isNaN(l=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?n*(36e5*r+6e4*i):NaN}(g.timezone)))return new Date(NaN)}else{var w=new Date(y+b),k=new Date(0);return k.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),k.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),k}return new Date(y+b+l)}function c(e){return e?parseInt(e):1}function d(e){return e&&parseFloat(e.replace(",","."))||0}var h=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100}},28484:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(18e3),i=n(23160);function o(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(0,0,0,0),t}},38322:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(79151),i=n(18e3),o=n(23160);function a(e,t){return(0,o.Z)(2,arguments),function(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(e),a=(0,r.Z)(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}(e,-(0,r.Z)(t))}},54806:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(79151),i=n(18e3),o=n(23160);function a(e,t){return(0,o.Z)(2,arguments),function(e,t){return(0,o.Z)(2,arguments),new Date((0,i.Z)(e).getTime()+(0,r.Z)(t))}(e,-(0,r.Z)(t))}},18e3:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23160);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},96798:function(e,t){"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return u},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return l},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let a="refresh",s="navigate",u="restore",l="server-patch",c="prefetch",d="fast-refresh",h="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=n||(n={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=r||(r={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49056:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(65265),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64345:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let r=n(43219),i=n(16794),o=n(52322),a=i._(n(2784)),s=r._(n(3613)),u=n(82246),l=n(96914),c=n(59789);n(37857);let d=n(65265);function h(e){return"/"===e[0]?e.slice(1):e}let p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},f=new Set,m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",g=new Map([["default",function(e){let{config:t,src:n,width:r,quality:i}=e;return n.endsWith(".svg")&&!t.dangerouslyAllowSVG?n:(0,d.normalizePathTrailingSlash)(t.path)+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}],["imgix",function(e){let{config:t,src:n,width:r,quality:i}=e,o=new URL(""+t.path+h(n)),a=o.searchParams;return a.set("auto",a.getAll("auto").join(",")||"format"),a.set("fit",a.get("fit")||"max"),a.set("w",a.get("w")||r.toString()),i&&a.set("q",i.toString()),o.href}],["cloudinary",function(e){let{config:t,src:n,width:r,quality:i}=e,o=["f_auto","c_limit","w_"+r,"q_"+(i||"auto")].join(",")+"/";return""+t.path+o+h(n)}],["akamai",function(e){let{config:t,src:n,width:r}=e;return""+t.path+h(n)+"?imwidth="+r}],["custom",function(e){let{src:t}=e;throw Error('Image with src "'+t+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}]]);function v(e){return void 0!==e.default}function y(e){let{config:t,src:n,unoptimized:r,layout:i,width:o,quality:a,sizes:s,loader:u}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(e,t,n,r){let{deviceSizes:i,allSizes:o}=e;if(r&&("fill"===n||"responsive"===n)){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t||"fill"===n||"responsive"===n?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,i,s),d=l.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:l.map((e,r)=>u({config:t,src:n,quality:a,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:u({config:t,src:n,quality:a,width:l[d]})}}function b(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function w(e){var t;let n=(null==(t=e.config)?void 0:t.loader)||"default",r=g.get(n);if(r)return r(e);throw Error('Unknown "loader" found in "next.config.js". Expected: '+u.VALID_LOADERS.join(", ")+". Received: "+n)}function k(e,t,n,r,i,o){e&&e.src!==m&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentNode&&(f.add(t),"blur"===r&&o(!0),null==i?void 0:i.current)){let{naturalWidth:t,naturalHeight:n}=e;i.current({naturalWidth:t,naturalHeight:n})}}))}let x=e=>{let{imgAttributes:t,heightInt:n,widthInt:r,qualityInt:i,layout:s,className:u,imgStyle:l,blurStyle:c,isLazy:d,placeholder:h,loading:p,srcString:f,config:m,unoptimized:g,loader:v,onLoadingCompleteRef:b,setBlurComplete:w,setIntersection:x,onLoad:_,onError:S,isVisible:E,noscriptSizes:D,...C}=e;return p=d?"lazy":p,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("img",{...C,...t,decoding:"async","data-nimg":s,className:u,style:{...l,...c},ref:(0,a.useCallback)(e=>{x(e),(null==e?void 0:e.complete)&&k(e,f,s,h,b,w)},[x,f,s,h,b,w]),onLoad:e=>{k(e.currentTarget,f,s,h,b,w),_&&_(e)},onError:e=>{"blur"===h&&w(!0),S&&S(e)}}),(d||"blur"===h)&&(0,o.jsx)("noscript",{children:(0,o.jsx)("img",{...C,loading:p,decoding:"async","data-nimg":s,style:l,className:u,...y({config:m,src:f,unoptimized:g,layout:s,width:r,quality:i,sizes:D,loader:v})})})]})};function _(e){var t;let n,{src:r,sizes:i,unoptimized:d=!1,priority:h=!1,loading:g,lazyRoot:k=null,lazyBoundary:_,className:S,quality:E,width:D,height:C,style:j,objectFit:O,objectPosition:T,onLoadingComplete:A,placeholder:P="empty",blurDataURL:R,...M}=e,F=(0,a.useContext)(c.ImageConfigContext),N=(0,a.useMemo)(()=>{let e=p||F||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[F]),I=i?"responsive":"intrinsic";"layout"in M&&(M.layout&&(I=M.layout),delete M.layout);let L=w;if("loader"in M){if(M.loader){let e=M.loader;L=t=>{let{config:n,...r}=t;return e(r)}}delete M.loader}let B="";if("object"==typeof(t=r)&&(v(t)||void 0!==t.src)){let e=v(r)?r.default:r;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(R=R||e.blurDataURL,B=e.src,(!I||"fill"!==I)&&(C=C||e.height,D=D||e.width,!e.height||!e.width))throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e))}let z=!h&&("lazy"===g||void 0===g);((r="string"==typeof r?r:B).startsWith("data:")||r.startsWith("blob:"))&&(d=!0,z=!1),f.has(r)&&(z=!1),N.unoptimized&&(d=!0);let[U,q]=(0,a.useState)(!1),[$,H,W]=(0,l.useIntersection)({rootRef:k,rootMargin:_||"200px",disabled:!z}),V=!z||H,G={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Y={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Z=!1,K=b(D),J=b(C),X=b(E),Q=Object.assign({},j,{position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:O,objectPosition:T}),ee="blur"!==P||U?{}:{backgroundSize:O||"cover",backgroundPosition:T||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'+R+'")'};if("fill"===I)G.display="block",G.position="absolute",G.top=0,G.left=0,G.bottom=0,G.right=0;else if(void 0!==K&&void 0!==J){let e=J/K,t=isNaN(e)?"100%":""+100*e+"%";"responsive"===I?(G.display="block",G.position="relative",Z=!0,Y.paddingTop=t):"intrinsic"===I?(G.display="inline-block",G.position="relative",G.maxWidth="100%",Z=!0,Y.maxWidth="100%",n="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27"+K+"%27%20height=%27"+J+"%27/%3e"):"fixed"===I&&(G.display="inline-block",G.position="relative",G.width=K,G.height=J)}let et={src:m,srcSet:void 0,sizes:void 0};V&&(et=y({config:N,src:r,unoptimized:d,layout:I,width:K,quality:X,sizes:i,loader:L}));let en=r,er={imageSrcSet:et.srcSet,imageSizes:et.sizes,crossOrigin:M.crossOrigin,referrerPolicy:M.referrerPolicy},ei=a.default.useLayoutEffect,eo=(0,a.useRef)(A),ea=(0,a.useRef)(r);(0,a.useEffect)(()=>{eo.current=A},[A]),ei(()=>{ea.current!==r&&(W(),ea.current=r)},[W,r]);let es={isLazy:z,imgAttributes:et,heightInt:J,widthInt:K,qualityInt:X,layout:I,className:S,imgStyle:Q,blurStyle:ee,loading:g,config:N,unoptimized:d,placeholder:P,loader:L,srcString:en,onLoadingCompleteRef:eo,setBlurComplete:q,setIntersection:$,isVisible:V,noscriptSizes:i,...M};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{style:G,children:[Z?(0,o.jsx)("span",{style:Y,children:n?(0,o.jsx)("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:n}):null}):null,(0,o.jsx)(x,{...es})]}),h?(0,o.jsx)(s.default,{children:(0,o.jsx)("link",{rel:"preload",as:"image",href:et.srcSet?void 0:et.src,...er},"__nimg-"+et.src+et.srcSet+et.sizes)}):null]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91425:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let r=n(43219),i=n(52322),o=r._(n(2784)),a=n(97942),s=n(40353),u=n(73828),l=n(58244),c=n(84515),d=n(35274),h=n(31011),p=n(96914),f=n(49056),m=n(98622),g=n(96798),v=new Set;function y(e,t,n,r,i,o){if(o||(0,s.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let i=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let n,r;let{href:u,as:v,children:w,prefetch:k=null,passHref:x,replace:_,shallow:S,scroll:E,locale:D,onClick:C,onMouseEnter:j,onTouchStart:O,legacyBehavior:T=!1,...A}=e;n=w,T&&("string"==typeof n||"number"==typeof n)&&(n=(0,i.jsx)("a",{children:n}));let P=o.default.useContext(d.RouterContext),R=o.default.useContext(h.AppRouterContext),M=null!=P?P:R,F=!P,N=!1!==k,I=null===k?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:L,as:B}=o.default.useMemo(()=>{if(!P){let e=b(u);return{href:e,as:v?b(v):e}}let[e,t]=(0,a.resolveHref)(P,u,!0);return{href:e,as:v?(0,a.resolveHref)(P,v):t||e}},[P,u,v]),z=o.default.useRef(L),U=o.default.useRef(B);T&&(r=o.default.Children.only(n));let q=T?r&&"object"==typeof r&&r.ref:t,[$,H,W]=(0,p.useIntersection)({rootMargin:"200px"}),V=o.default.useCallback(e=>{(U.current!==B||z.current!==L)&&(W(),U.current=B,z.current=L),$(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[B,q,L,W,$]);o.default.useEffect(()=>{M&&H&&N&&y(M,L,B,{locale:D},{kind:I},F)},[B,L,H,D,N,null==P?void 0:P.locale,M,F,I]);let G={ref:V,onClick(e){T||"function"!=typeof C||C(e),T&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),M&&!e.defaultPrevented&&function(e,t,n,r,i,a,u,l,c){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,s.isLocalURL)(n)))return;e.preventDefault();let h=()=>{let e=null==u||u;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(h):h()}(e,M,L,B,_,S,E,D,F)},onMouseEnter(e){T||"function"!=typeof j||j(e),T&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),M&&(N||!F)&&y(M,L,B,{locale:D,priority:!0,bypassPrefetchedCheck:!0},{kind:I},F)},onTouchStart:function(e){T||"function"!=typeof O||O(e),T&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),M&&(N||!F)&&y(M,L,B,{locale:D,priority:!0,bypassPrefetchedCheck:!0},{kind:I},F)}};if((0,l.isAbsoluteUrl)(B))G.href=B;else if(!T||x||"a"===r.type&&!("href"in r.props)){let e=void 0!==D?D:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)(B,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);G.href=t||(0,m.addBasePath)((0,c.addLocale)(B,e,null==P?void 0:P.defaultLocale))}return T?o.default.cloneElement(r,G):(0,i.jsx)("a",{...A,...G,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96914:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return u}});let r=n(2784),i=n(88435),o="function"==typeof IntersectionObserver,a=new Map,s=[];function u(e){let{rootRef:t,rootMargin:n,disabled:u}=e,l=u||!o,[c,d]=(0,r.useState)(!1),h=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{h.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(l||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[l,n,t,c,h.current]),[p,c,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59246:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},noSSR:function(){return a}});let r=n(43219);n(52322),n(2784);let i=r._(n(84204));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let s=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57604:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(43219)._(n(2784)).default.createContext(null)},84204:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(43219)._(n(2784)),i=n(57604),o=[],a=[],s=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class l{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function u(){if(!o){let t=new l(e,n);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!s){let e=n.webpack?n.webpack():n.modules;e&&a.push(t=>{for(let n of e)if(t.includes(n))return u()})}function c(e,t){!function(){u();let e=r.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let a=r.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),r.default.useMemo(()=>{var t;return a.loading||a.error?r.default.createElement(n.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:o.retry}):a.loaded?r.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return c.preload=()=>u(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(u,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(o).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(s=!0,t());d(a,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},88343:function(e,t,n){"use strict";n.d(t,{w_:function(){return u}});var r=n(2784),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function u(e){return function(t){return r.createElement(l,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function l(e){var t=function(t){var n,i=e.attr,o=e.size,u=e.title,l=s(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,l,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},61036:function(){},65331:function(){},41779:function(){},89902:function(){},38398:function(e,t,n){!function(){var t={452:function(e){"use strict";e.exports=n(50176)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete r[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=v(e));var r,i,o,a,s,u,l,c,d,h=(i=(r=e).auth,o=r.hostname,a=r.protocol||"",s=r.pathname||"",u=r.hash||"",l=r.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",r.host?c=i+r.host:o&&(c=i+(~o.indexOf(":")?"["+o+"]":o),r.port&&(c+=":"+r.port)),l&&"object"==typeof l&&(l=t.encode(l)),d=r.search||l&&"?"+l||"",a&&":"!==a.substr(-1)&&(a+=":"),r.slashes||(!a||n.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),u&&"#"!==u[0]&&(u="#"+u),d&&"?"!==d[0]&&(d="?"+d),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:u});return""+h.protocol+h.host+h.pathname+h.search+h.hash}var a="http://",s=a+"w.w",u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,l=/https?|ftp|gopher|file/;function c(e,t){var n="string"==typeof e?v(e):e;e="object"==typeof e?r(e):e;var i=v(t),o="";n.protocol&&!n.slashes&&(o=n.protocol,e=e.replace(n.protocol,""),o+="/"===t[0]||"/"===e[0]?"/":""),o&&i.protocol&&(o="",i.slashes||(o=i.protocol,t=t.replace(i.protocol,"")));var c=e.match(u);c&&!i.protocol&&(e=e.substr((o=c[1]+(c[2]||"")).length),/^\/\/[^/]/.test(t)&&(o=o.slice(0,-1)));var d=new URL(e,s+"/"),h=new URL(t,d).toString().replace(s,""),p=i.protocol||n.protocol;return p+=n.slashes||i.slashes?"//":"",!o&&p?h=h.replace(a,p):o&&(h=h.replace(a,"")),l.test(h)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==h.slice(-1)||(h=h.slice(0,-1)),o&&(h=o+("/"===h[0]?h.substr(1):h)),h}function d(){}d.prototype.parse=v,d.prototype.format=r,d.prototype.resolve=c,d.prototype.resolveObject=c;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,f=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!1),e&&"object"==typeof e&&e instanceof d)return e;var o=(e=e.trim()).match(p);e=o?o[1].replace(/\\/g,"/")+o[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(f),u=m.test(e),l="";a&&(h.test(a[1])||(l=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(u=!1,h.test(a[1])?(l=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(l=a[1],e="/"+a[3]));var c,v=(o?o[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),y=v&&v[1],b=new d,w="",k="";try{c=new URL(e)}catch(t){w=t,l||i||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(k="/",e=e.substr(1));try{c=new URL(e,s)}catch(e){return b.protocol=l,b.href=l,b}}b.slashes=u&&!k,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=w?l||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var x=e.split("#");!b.search&&~x[0].indexOf("?")&&(b.search="?"),b.hash||""!==x[1]||(b.hash="#"),b.query=n?t.decode(c.search.substr(1)):b.search.substr(1),b.pathname=k+(a?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),l&&!h.test(l)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,y&&!b.host.endsWith(y)&&(b.host+=y,b.port=y.slice(1)),b.href=k?""+b.pathname+b.search+b.hash:r(b);var _=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~_.indexOf(e)||(b[e]=b[e]||null)}),b}o.parse=v,o.format=r,o.resolve=c,o.resolveObject=function(e,t){return v(c(e,t))},o.Url=d}(),e.exports=o}()},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var u=r.lastIndexOf("/");if(u!==r.length-1){-1===u?(r="",i=0):i=(r=r.slice(0,u)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;il){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>l&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var h=e.charCodeAt(i+d);if(h!==n.charCodeAt(s+d))break;47===h&&(c=d)}var p="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,u=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){i=r+1;break}}else -1===u&&(a=!1,u=r+1),s>=0&&(l===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=u))}return i===o?o=u:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(47===u){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===u?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,u=-1,l=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!l){s=c+1;break}continue}-1===u&&(l=!1,u=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===u||0===d||1===d&&a===u-1&&a===s+1?-1!==u&&(0===s&&o?r.base=r.name=e.slice(1,u):r.base=r.name=e.slice(s,u)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,u)):(r.name=e.slice(s,a),r.base=e.slice(s,u)),r.ext=e.slice(a,u)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},50176:function(e){!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(n);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l=0?(c=f.substr(0,m),d=f.substr(m+1)):(c=f,d=""),h=decodeURIComponent(c),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(o,h))?t(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?r(i(e),function(i){var s=encodeURIComponent(t(i))+a;return n(e[i])?r(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-D(-e):D(e);if(r!==e){var i=String(r),o=y.call(t,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,n,"$&_")}var F=n(53260).custom,N=F&&B(F)?F:null;function I(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function L(e){return"[object Array]"===q(e)&&(!A||!("object"==typeof e&&A in e))}function B(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(U(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(U(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!U(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(s,"indent")&&null!==s.indent&&" "!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var m=s.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(y.call(t,0,n.maxStringLength),n)+"... "+r+" more character"+(r>1?"s":"")}return I(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",n)}(t,s);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var w=String(t);return m?M(t,w):w}if("bigint"==typeof t){var x=String(t)+"n";return m?M(t,x):x}var D=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=D&&D>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var j=function(e,t){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=S.call(Array(e.indent+1)," ")}return{base:n,prev:S.call(Array(t+1),n)}}(s,r);if(void 0===i)i=[];else if($(i,t)>=0)return"[Circular]";function F(t,n,o){if(n&&(i=E.call(i)).push(n),o){var a={depth:s.depth};return U(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var z=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),K=Z(t,F);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(K.length>0?" { "+S.call(K,", ")+" }":"")}if(B(t)){var J=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(t);return"object"!=typeof t||T?J:W(J)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var X,Q="<"+k.call(String(t.nodeName)),ee=t.attributes||[],et=0;et"}if(L(t)){if(0===t.length)return"[]";var en=Z(t,F);return j&&!function(e){for(var t=0;t=0)return!1;return!0}(en)?"["+Y(en,j)+"]":"[ "+S.call(en,", ")+" ]"}if("[object Error]"===q(t)&&(!A||!("object"==typeof t&&A in t))){var er=Z(t,F);return"cause"in t&&!P.call(t,"cause")?"{ ["+String(t)+"] "+S.call(_.call("[cause]: "+F(t.cause),er),", ")+" }":0===er.length?"["+String(t)+"]":"{ ["+String(t)+"] "+S.call(er,", ")+" }"}if("object"==typeof t&&u){if(N&&"function"==typeof t[N])return t[N]();if("symbol"!==u&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ei=[];return a.call(t,function(e,n){ei.push(F(n,t,!0)+" => "+F(e,t))}),G("Map",o.call(t),ei,j)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eo=[];return c.call(t,function(e){eo.push(F(e,t))}),G("Set",l.call(t),eo,j)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return V("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return V("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(t))return V("WeakRef");if("[object Number]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return W(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return W(F(C.call(t)));if("[object Boolean]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return W(f.call(t));if("[object String]"===q(t)&&(!A||!("object"==typeof t&&A in t)))return W(F(String(t)));if(!("[object Date]"===q(t)&&(!A||!("object"==typeof t&&A in t)))&&!("[object RegExp]"===q(t)&&(!A||!("object"==typeof t&&A in t)))){var ea=Z(t,F),es=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,eu=t instanceof Object?"":"null prototype",el=!es&&A&&Object(t)===t&&A in t?y.call(q(t),8,-1):eu?"Object":"",ec=(es||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(el||eu?"["+S.call(_.call([],el||[],eu||[]),": ")+"] ":"");return 0===ea.length?ec+"{}":j?ec+"{"+Y(ea,j)+"}":ec+"{ "+S.call(ea,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function U(e,t){return z.call(e,t)}function q(e){return m.call(e)}function $(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nthis.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),u=new o.g7,l=Object.prototype.hasOwnProperty,c=void 0===(r=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:r;function d(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var h=[];function p(e,t){if(!e)throw Error(t||"assertion failure")}function f(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var m=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!y(this))return g(this),this.value[0]},e.prototype.recompute=function(e){var t;return p(!this.recomputing,"already recomputing"),g(this),y(this)&&(_(this),u.withValue(this,v,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{d(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,y(this)||(t=this,b(t,k)))),f(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this,w),d(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),_(this),b(this,function(t,n){t.setDirty(),S(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(c(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),h.push(this.deps),this.deps=null)},e.count=0,e}();function g(e){var t=u.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),y(e)?w(t,e):k(t,e),t}function v(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function y(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function b(e,t){var n=e.parents.size;if(n)for(var r=c(e.parents),i=0;i0&&r===n.length&&i[r-1]===n[r-1]||e.setDirty()),x(e,t),y(e)||b(e,k)}function x(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(h.length<100&&h.push(n),e.dirtyChildren=null))}function _(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){S(e,n)}),e.forgetDeps(),p(null===e.dirtyChildren)}function S(e,t){t.parents.delete(e),e.childValues.delete(t),x(e,t)}var E={setDirty:!0,dispose:!0,forget:!0};function D(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=u.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(d(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&l.call(E,n)?n:"setDirty";c(r).forEach(function(e){return e[i]()}),t.delete(e),d(r)}},r}function C(){var e=new i.B("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}C();var j=new Set;function O(e,t){void 0===t&&(t=Object.create(null));var n=new s(t.max||65536,function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||C(),o=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new m(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),j.add(n),u.hasValue()||(j.forEach(function(e){return e.clean()}),j.clear()),s};function a(e){var t=n.get(e);t&&t.setDirty()}function l(e){var t=n.get(e);if(t)return t.peek()}function c(e){return n.delete(e)}return Object.defineProperty(o,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=l,o.peek=function(){return l(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(o)}},23222:function(e,t,n){"use strict";n.d(t,{IW:function(){return h},V0:function(){return s},aD:function(){return o},i$:function(){return a},tB:function(){return i}});var r=n(90824);function i(e){return e.length<3?0:Math.abs((0,r.Sm)(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function o(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,s=a(e),u=s.minX,l=s.minY,c=s.maxX,d=s.maxY,h=n/(c-u),p=r/(d-l);return e.map(function(e){return[i+(e[0]-u)*h,o+(e[1]-l)*p]})}function a(e){var t=e.map(function(e){return e[0]}),n=e.map(function(e){return e[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function s(e,t,n){var i=e[0],o=e[1],s=a(t),h=s.minX,p=s.minY,f=s.maxX,m=s.maxY,g=[[h,o],[f,o]],v=[[i,p],[i,m]],y=u(g[0],g[1]),b=u(v[0],v[1]),w=d(t),k=[],x=[];return w.forEach(function(e){var t=u(e[0],e[1]),n=c(l(y,t),[g,e]),r=c(l(b,t),[v,e]);(1!==n.length||e[0][1]!==o)&&k.push.apply(k,n),(1!==r.length||e[0][0]!==i)&&x.push.apply(x,r),t[0]||k.push.apply(k,n),t[1]||x.push.apply(x,r)}),!!(!n&&((0,r.cx)(k,function(e){return e[0]===i})>-1||(0,r.cx)(x,function(e){return e[1]===o})>-1))||!!(k.filter(function(e){return e[0]>i}).length%2)&&!!(x.filter(function(e){return e[1]>o}).length%2)}function u(e,t){var n=e[0],r=e[1],i=t[0],o=t[1];if(n===i&&r===o)return[0,0,0];if(n===i)return[1,0,-n];if(r===o)return[0,1,-r];var a=(i-n)/(r-o);return[1,a,-n-a*r]}function l(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=0===n&&0===o,l=0===r&&0===a;if(u&&l)return[];if(u){var c=-i/r;return c!==-s/a?[]:[[-1/0,c],[1/0,c]]}if(l){var d=-i/n;return d!==-s/o?[]:[[d,-1/0],[d,1/0]]}if(0===n){var h=-i/r,p=-(a*h+s)/o;return[[p,h]]}if(0===o){var h=-s/a,p=-(r*h+i)/n;return[[p,h]]}if(0===r){var p=-i/n,h=-(o*p+s)/a;return[[p,h]]}if(0===a){var p=-s/o,h=-(n*p+i)/r;return[[p,h]]}else{var p=(r*s-a*i)/(a*n-r*o),h=-(n*p+i)/r;return[[p,h]]}}function c(e,t){var n=t.map(function(e){return[0,1].map(function(t){return[Math.min(e[0][t],e[1][t]),Math.max(e[0][t],e[1][t])]})});if(2===e.length){var r=e[0],i=r[0],o=r[1];if(i===e[1][0]){var a=Math.max.apply(Math,n.map(function(e){return e[1][0]})),s=Math.min.apply(Math,n.map(function(e){return e[1][1]}));return a>s?[]:[[i,a],[i,s]]}if(o===e[1][1]){var u=Math.max.apply(Math,n.map(function(e){return e[0][0]})),l=Math.min.apply(Math,n.map(function(e){return e[0][1]}));return u>l?[]:[[u,o],[l,o]]}}return e.filter(function(e){return n.every(function(t){return t[0][0]<=e[0]&&e[0]<=t[0][1]&&t[1][0]<=e[1]&&e[1]<=t[1][1]})})}function d(e){return(function(){for(var e=0,t=0,n=arguments.length;te){return e*r(.5-t*(.5-n))}function i(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e[0]-t[0],e[1]-t[1]]}function a(e,t){return[e[0]*t,e[1]*t]}function s(e){return[e[1],-e[0]]}function u(e,t){return e[0]*t[0]+e[1]*t[1]}function l(e,t){var n;return(n=o(e,t))[0]*n[0]+n[1]*n[1]}function c(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function d(e,t,n){let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*r+t[0],o*r+a*i+t[1]]}function h(e,t,n){return i(e,a(o(t,e),n))}n.d(t,{ZP:function(){return y},ib:function(){return g},tt:function(){return v}});var{min:p,PI:f}=Math,m=f+1e-4;function g(e,t={}){var n,f;let{size:g=16,smoothing:v=.5,thinning:y=.5,simulatePressure:b=!0,easing:w=e=>e,start:k={},end:x={},last:_=!1}=t,{cap:S=!0,easing:E=e=>e*(2-e)}=k,{cap:D=!0,easing:C=e=>--e*e*e+1}=x;if(0===e.length||g<=0)return[];let j=e[e.length-1].runningLength,O=!1===k.taper?0:!0===k.taper?Math.max(g,j):k.taper,T=!1===x.taper?0:!0===x.taper?Math.max(g,j):x.taper,A=Math.pow(g*v,2),P=[],R=[],M=e.slice(0,10).reduce((e,t)=>{let n=t.pressure;if(b){let r=p(1,t.distance/g),i=p(1,1-r);n=p(1,e+.275*r*(i-e))}return(e+n)/2},e[0].pressure),F=r(g,y,e[e.length-1].pressure,w),N,I=e[0].vector,L=e[0].point,B=L,z=L,U=B,q=!1;for(let t=0;tu(f,I)&&!q,D=null!==_&&_<0;if(S||D){let e=a(s(I),F);for(let t=1/13,n=0;n<=1;n+=t)z=d(o(c,e),c,m*n),P.push(z),U=d(i(c,e),c,-(m*n)),R.push(U);L=z,B=U,D&&(q=!0);continue}if(q=!1,t===e.length-1){let e=a(s(f),F);P.push(o(c,e)),R.push(i(c,e));continue}let $=a(s(h(x,f,_)),F);z=o(c,$),(t<=1||l(L,z)>A)&&(P.push(z),L=z),U=i(c,$),(t<=1||l(B,U)>A)&&(R.push(U),B=U),M=n,I=f}let $=e[0].point.slice(0,2),H=e.length>1?e[e.length-1].point.slice(0,2):i(e[0].point,[1,1]),W=[],V=[];if(1===e.length){if(!(O||T)||_){let e=(n=c(s(o($,H))),i($,a(n,-(N||F)))),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(d(e,$,2*m*r));return t}}else{if(!(O||T&&1===e.length)){if(S)for(let e=1/13,t=e;t<=1;t+=e){let e=d(R[0],$,m*t);W.push(e)}else{let e=o(P[0],R[0]),t=a(e,.5),n=a(e,.51);W.push(o($,t),o($,n),i($,n),i($,t))}}let t=s([-(f=e[e.length-1].vector)[0],-f[1]]);if(T||O&&1===e.length)V.push(H);else if(D){let e=i(H,a(t,F));for(let t=1/29,n=t;n<1;n+=t)V.push(d(e,H,3*m*n))}else V.push(i(H,a(t,F)),i(H,a(t,.99*F)),o(H,a(t,.99*F)),o(H,a(t,F)))}return P.concat(V,R.reverse(),W)}function v(e,t={}){var n,r,a;let{streamline:s=.5,size:u=16,last:l=!1}=t;if(0===e.length)return[];let d=.15+(1-s)*.85,p=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(2===p.length){let e=p[1];p=p.slice(0,-1);for(let t=1;t<5;t++)p.push(h(p[0],e,t/4))}1===p.length&&(p=[...p,[...i(p[0],[1,1]),...p[0].slice(2)]]);let f=[{point:[p[0][0],p[0][1]],pressure:p[0][2]>=0?p[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],m=!1,g=0,v=f[0],y=p.length-1;for(let e=1;e=0?p[e][2]:.5,vector:c(o(v.point,t)),distance:n,runningLength:g},f.push(v)}return f[0].vector=(null==(n=f[1])?void 0:n.vector)||[0,0],f}var y=function(e,t={}){return g(v(e,t),t)}},33847:function(e,t,n){"use strict";n.d(t,{HY:function(){return v},Tm:function(){return R},Vf:function(){return g},bR:function(){return function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some(function(t){e(t,n)}):n.push(t)),n}},h:function(){return f},sY:function(){return P},wA:function(){return y}});var r,i,o,a,s,u,l={},c=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function f(e,t,n){var i,o,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return m(e,s,i,o,null)}function m(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function g(){return{current:null}}function v(e){return e.children}function y(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?m(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(y=E[f])||y&&w.key==y.key&&w.type===y.type)E[f]=void 0;else for(g=0;g2&&(s.children=arguments.length>3?r.call(arguments,2):n),m(e.type,s,i||e.key,o||e.ref,null)}r=c.slice,i={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,y.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},y.prototype.render=v,a=[],s="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,k.__r=0},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var u=[],l=!1,c=-1;function d(){l&&r&&(l=!1,r.length?u=r.concat(u):c=-1,u.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(r=u,u=[];++c1)for(var n=1;n-1?e.split(","):e},u=function(e,t){var n={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,c=u.split(t.delimiter,l),d=-1,h=t.charset;if(t.charsetSentinel)for(p=0;p=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[l]=i:a={0:i}}i=a}return i},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),u=s?o.slice(0,s.index):o,c=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d0?_.join(",")||null:void 0}];else if(u(d))x=d;else{var E=Object.keys(_);x=h?E.sort(h):E}for(var D=0;D0?y+v:""}},12493:function(e,t,n){"use strict";var r=n(85527),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)){u+=s.charAt(l);continue}if(c<128){u+=a[c];continue}if(c<2048){u+=a[192|c>>6]+a[128|63&c];continue}if(c<55296||c>=57344){u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c];continue}l+=1,u+=a[240|(c=65536+((1023&c)<<10|1023&s.charCodeAt(l)))>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c]}return u},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r>>0},o=function(e){var t,n="rCS"+i(e).toString(36),o=0;return{className:n,inject:function(i,a){void 0===a&&(a={});var s,u,l,c=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(i),d=0===o;return(c||d)&&(s=a,(u=document.createElement("style")).setAttribute("type","text/css"),u.setAttribute("data-styled-id",n),s.nonce&&u.setAttribute("nonce",s.nonce),u.innerHTML=s.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(e,t){var i=t.trim();return(i?(0,r.W6)(i):[""]).map(function(e){var t=e.trim();return 0===t.indexOf("@")?t:t.indexOf(":global")>-1?t.replace(/\:global/g,""):t.indexOf(":host")>-1?""+t.replace(/\:host/g,"."+n):t?"."+n+" "+t:"."+n}).join(", ")+" {"}),(c||document.head||document.body).appendChild(u),l=u),d&&(t=l),!c&&++o,{destroy:function(){c?(i.removeChild(l),l=null):(o>0&&--o,0===o&&t&&(t.parentNode.removeChild(t),t=null))}}}}},a=n(2784),s=n(22989),u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function l(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["className","cspNonce","portalContainer"]),i=this.injector.className,o=this.tag,u={};return(a.version||"").indexOf("simple")>-1&&n&&(u={portalContainer:n}),(0,a.createElement)(o,c({ref:(0,s.iH)(this,"element"),"data-styled-id":i,className:(void 0===t?"":t)+" "+i},u,r))},n.componentDidMount=function(){this.injectResult=this.injector.inject(this.element,{nonce:this.props.cspNonce})},n.componentWillUnmount=function(){this.injectResult.destroy(),this.injectResult=null},n.getElement=function(){return this.element},t}(a.Component),h=function(e,t){var n=o(t);return function(t){function r(){var r=null!==t&&t.apply(this,arguments)||this;return r.injector=n,r.tag=e,r}return l(r,t),r}(d)}},80589:function(e,t,n){!function(e,t){"use strict";var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i={error:null},o=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o0;function i(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function o(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},u={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},l={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},c={16:!1,18:!1,17:!1,91:!1},d={},h=1;h<20;h++)s["f".concat(h)]=111+h;var p=[],f=!1,m="all",g=[],v=function(e){return s[e.toLowerCase()]||u[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function y(e){m=e||"all"}function b(){return m||"all"}var w=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,s=void 0===i?"+":i;a(t).forEach(function(e){var t=e.split(s),i=t.length,a=t[i-1],l="*"===a?"*":v(a);if(d[l]){n||(n=b());var c=i>1?o(u,t):[];d[l]=d[l].filter(function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,o=0;o0,c)Object.prototype.hasOwnProperty.call(c,o)&&(!c[o]&&t.mods.indexOf(+o)>-1||c[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||c[16]||c[18]||c[17]||c[91])&&!i&&"*"!==t.shortcut||!1!==t.method(e,t)||(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function x(e,t){var n=d["*"],r=e.keyCode||e.which||e.charCode;if(_.filter.call(this,e)){if((93===r||224===r)&&(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=l[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&!(e.ctrlKey||e.shiftKey||e.altKey)&&(p=p.slice(p.indexOf(n)))}),r in c){for(var i in c[r]=!0,u)u[i]===r&&(_[i]=!0);if(!n)return}for(var o in c)Object.prototype.hasOwnProperty.call(c,o)&&(c[o]=e[l[o]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),c[17]=!0,c[18]=!0);var a=b();if(n)for(var s=0;s1&&(l=o(u,e)),(e="*"===(e=e[e.length-1])?"*":v(e))in d||(d[e]=[]),d[e].push({keyup:b,keydown:w,scope:h,mods:l,shortcut:s[y],method:n,key:s[y],splitKey:k,element:m});void 0!==m&&(r=m,!(g.indexOf(r)>-1))&&window&&(g.push(m),i(m,"keydown",function(e){x(e,m)},S),f||(f=!0,i(window,"focus",function(){p=[]},S)),i(m,"keyup",function(e){x(e,m),function(e){var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),(93===t||224===t)&&(t=91),t in c)for(var r in c[t]=!1,u)u[r]===t&&(_[r]=!1)}(e)},S))}var S={setScope:y,getScope:b,deleteScope:function(e,t){var n,r;for(var i in e||(e=b()),d)if(Object.prototype.hasOwnProperty.call(d,i))for(r=0,n=d[i];r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(d).forEach(function(n){var r=d[n].find(function(n){return n.scope===t&&n.shortcut===e});r&&r.method&&r.method()})},unbind:function(e){if(void 0===e)Object.keys(d).forEach(function(e){return delete d[e]});else if(Array.isArray(e))e.forEach(function(e){e.key&&w(e)});else if("object"==typeof e)e.key&&w(e);else if("string"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],s={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"},u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},c=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i0;--r)n+=t[Math.round(Math.random()*(t.length-1))];return n}(),"-").concat(x)),Array.isArray(g)&&g.forEach(function(t){t.condition(k,x,b)&&("function"!=typeof t.pre||(k=t.pre(k,x,b))instanceof Node||(k=e),"function"==typeof t.post&&_.push(t.post(k,x,b)))}),_.length)return _;switch(k.nodeType){case 1:return i.createElement((n=k.nodeName,/[a-z]+[A-Z]+[a-z]+/.test(n)?n:n.toLowerCase()),function(e,t){var n={key:t};if(e instanceof Element){var r=e.getAttribute("class");r&&(n.className=r),c([],l(e.attributes),!1).forEach(function(e){switch(e.name){case"class":break;case"style":n[e.name]=e.value.split(/ ?; ?/).reduce(function(e,t){var n=o(t.split(/ ?: ?/),2),r=n[0],i=n[1];return r&&i&&(e[r.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})]=Number.isNaN(Number(i))?i:Number(i)),e},{});break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[s[e.name]||e.name]=!0;break;default:n[s[e.name]||e.name]=e.value}})}return n}(k,x),(r=k.childNodes,h=t,(p=c([],l(r),!1).map(function(e,t){return d(e,u(u({},h),{index:t,level:b+1}))}).filter(Boolean)).length?p:null));case 3:var S=(null===(f=k.nodeValue)||void 0===f?void 0:f.toString())||"";if(/^\s+$/.test(S)&&!/[\u00A0\u202F]/.test(S))return null;if(!k.parentNode)return S;var E=k.parentNode.nodeName.toLowerCase();if(a.includes(E))return/\S/.test(S)&&console.warn("A textNode is not allowed inside '".concat(E,"'. Your text \"").concat(S,'" will be ignored')),null;return S;default:return null}}function h(e,t){return(void 0===t&&(t={}),"string"==typeof e)?function(e,t){if(void 0===t&&(t={}),!e||"string"!=typeof e)return null;var n=t.nodeOnly,r=t.selector,i=t.type;try{var o=new DOMParser().parseFromString(e,void 0===i?"text/html":i).querySelector(void 0===r?"body > *":r);if(!(o instanceof Node))throw TypeError("Error parsing input");if(void 0!==n&&n)return o;return d(o,t)}catch(e){}return null}(e,t):e instanceof Node?d(e,t):null}var p=n(85978),f={FAILED:"failed",LOADED:"loaded",LOADING:"loading",PENDING:"pending",READY:"ready",UNSUPPORTED:"unsupported"};function m(){return p.canUseDOM}var g=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},b=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i299)throw Error("Not found");if(!["image/svg+xml","text/plain"].some(function(e){return n.includes(e)}))throw Error("Content type isn't valid: ".concat(n));return e.text()}).then(function(e){var r=n.props.src;if(i!==r){w[i].status===f.LOADING&&delete w[i];return}if(n.handleLoad(e),t){var o=w[i];o&&(o.content=e,o.status=f.LOADED)}}).catch(function(e){n.handleError(e),t&&w[i]&&delete w[i]})}catch(e){return n.handleError(Error(e.message))}}}),n.state={content:"",element:null,hasCache:!!t.cacheRequests&&!!w[t.src],status:f.PENDING},n.hash=t.uniqueHash||function(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="".concat(t).concat(t.toUpperCase()).concat("1234567890"),r="",i=0;i<8;i++)r+=n[Math.floor(Math.random()*n.length)];return r}(0),n}return g(t,e),Object.defineProperty(t.prototype,"componentDidMount",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isActive=!0,m()&&!this.isInitialized){var e=this.state.status,t=this.props.src;try{if(e===f.PENDING){if(!(function(){if(!document)return!1;var e=document.createElement("div");e.innerHTML="";var t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"undefined"!=typeof window&&null!==window))throw Error("Browser does not support SVG");if(!t)throw Error("Missing src");this.load()}}catch(e){this.handleError(e)}this.isInitialized=!0}}}),Object.defineProperty(t.prototype,"componentDidUpdate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(m()){var n=this.state,r=n.hasCache,i=n.status,o=this.props,a=o.onLoad,s=o.src;if(t.status!==f.READY&&i===f.READY&&a&&a(s,r),e.src!==s){if(!s){this.handleError(Error("Missing src"));return}this.load()}}}}),Object.defineProperty(t.prototype,"componentWillUnmount",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isActive=!1}}),Object.defineProperty(t.prototype,"getNode",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.props,t=e.description,n=e.title;try{var r=this.processSVG(),i=h(r,{nodeOnly:!0});if(!i||!(i instanceof SVGSVGElement))throw Error("Could not convert the src to a DOM Node");var o=this.updateSVGAttributes(i);if(t){var a=o.querySelector("desc");a&&a.parentNode&&a.parentNode.removeChild(a);var s=document.createElement("desc");s.innerHTML=t,o.prepend(s)}if(n){var u=o.querySelector("title");u&&u.parentNode&&u.parentNode.removeChild(u);var l=document.createElement("title");l.innerHTML=n,o.prepend(l)}return o}catch(e){return this.handleError(e)}}}),Object.defineProperty(t.prototype,"getElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){try{var e=this.getNode(),t=h(e);if(!t||!i.isValidElement(t))throw Error("Could not convert the src to a React element");this.setState({element:t,status:f.READY})}catch(e){this.handleError(Error(e.message))}}}),Object.defineProperty(t.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.isActive&&this.setState({content:"",element:null,status:f.LOADING},function(){var t,n=e.props,r=n.cacheRequests,i=n.src,o=r&&w[i];if(o&&o.status===f.LOADED){e.handleLoad(o.content);return}var a=i.match(/data:image\/svg[^,]*?(;base64)?,(.*)/);if(a?t=a[1]?window.atob(a[2]):decodeURIComponent(a[2]):i.includes(" needs to exist in the component ancestry.")}var u=(0,r.pi)((0,r.pi)({},a.Z0),{textComponent:i.Fragment});function l(e){return function(t){return e(i.Children.toArray(t))}}function c(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;ot.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;ia;var u=n(2784);let l=Symbol.for("react-redux-context"),c="undefined"!=typeof globalThis?globalThis:{},d=function(){var e;if(!u.createContext)return{};let t=null!=(e=c[l])?e:c[l]=new Map,n=t.get(u.createContext);return n||(n=u.createContext(null),t.set(u.createContext,n)),n}();function h(e=d){return function(){return(0,u.useContext)(e)}}let p=h(),f=()=>{throw Error("uSES not initialized!")},m=(e,t)=>e===t,g=function(e=d){let t=e===d?p:h(e);return function(e,n={}){let{equalityFn:r=m,stabilityCheck:i,noopCheck:o}="function"==typeof n?{equalityFn:n}:n,{store:a,subscription:s,getServerState:l,stabilityCheck:c,noopCheck:d}=t();(0,u.useRef)(!0);let h=(0,u.useCallback)({[e.name]:t=>e(t)}[e.name],[e,c,i]),p=f(s.addNestedSub,a.getState,l||a.getState,h,r);return(0,u.useDebugValue)(p),p}}();n(73463),n(63920);let v={notify(){},get:()=>[]},y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;var b=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){let a=u.useMemo(()=>{let t=function(e,t){let n;let r=v,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function u(){i++,n||(n=e.subscribe(a),r=function(){let e=s(),t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=v)}let c={addNestedSub:function(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,u())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),l=u.useMemo(()=>e.getState(),[e]);return y(()=>{let{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,l]),u.createElement((t||d).Provider,{value:a},n)};function w(e=d){let t=e===d?p:h(e);return function(){let{store:e}=t();return e}}let k=w(),x=function(e=d){let t=e===d?k:w(e);return function(){return t().dispatch}}();f=i.useSyncExternalStoreWithSelector,r.useSyncExternalStore,a=o.unstable_batchedUpdates},98559:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},63920:function(e,t,n){"use strict";n(98559)},95346:function(e,t,n){"use strict";n.d(t,{Av:function(){return a},pF:function(){return r},xv:function(){return o},zi:function(){return i}});var r="right-scroll-bar-position",i="width-before-scroll-bar",o="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},181:function(e,t,n){"use strict";n.d(t,{jp:function(){return h}});var r=n(2784),i=n(33225),o=n(95346),a={left:0,top:0,right:0,gap:0},s=function(e){return parseInt(e||"",10)||0},u=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[s(n),s(r),s(i)]},l=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=u(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},c=(0,i.Ws)(),d=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(o.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(o.pF," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(o.zi," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(o.pF," .").concat(o.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(o.zi," .").concat(o.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat(o.Av,": ").concat(u,"px;\n }\n")},h=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=void 0===i?"margin":i,a=r.useMemo(function(){return l(o)},[o]);return r.createElement(c,{styles:d(a,!t,o,n?"":"!important")})}},75641:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784);function i(){return(i=Object.assign||function(e){for(var t=1;t100)throw r=0,Error("Call stack overflow for "+u);if(""===n)throw Error(o+"(): '"+u+"' must contain a non-whitespace string");var l,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var u=i("(",")",a.substring([0].index));if(""===u.body)throw Error("'"+t+"' must contain a non-whitespace string");var l=e(u.body,"",n);o+=u.pre+l,a=u.post}return o+a}(n,u));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var h=n.replace(RegExp(d,"gi"),"");try{l=a.eval(h)}catch(e){return o+"("+n+")"}return"%"===d&&(l*=100),(o.length||"%"===d)&&(l=Math.round(l*t)/t),l+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())=0?u:l;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,u=r("(",")",e.substring(s));if(!u||u.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:u,functionIdentifier:a}),e=u.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},38726:function(e,t,n){"use strict";n.d(t,{md:function(){return p},UY:function(){return d},qC:function(){return h},MT:function(){return c}});var r=n(56666);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1?t-1:0),r=1;r-1){var o=n[i];return i>0&&(n.splice(i,1),n.unshift(o)),o.value}return r}return{get:i,put:function(t,o){i(t)===r&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,d);function p(){var t=h.get(arguments);if(t===r){if(t=e.apply(null,arguments),c){var n=h.getEntries().find(function(e){return c(e.value,t)});n&&(t=n.value)}h.put(arguments,t)}return t}return p.clearCache=function(){return h.clear()},p})},1313:function(e,t,n){var r=n(88421),i=n(12824),o=n(244),a=n(10330),s=n(45028),u=n(33929),l=n(53154);l.alea=r,l.xor128=i,l.xorwow=o,l.xorshift7=a,l.xor4096=s,l.tychei=u,e.exports=l},88421:function(e,t,n){var r;!function(e,i,o){function a(e){var t,n=this,r=(t=4022871197,function(e){e=String(e);for(var n=0;n>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return(t>>>0)*23283064365386963e-26});n.next=function(){var e=2091639*n.s0+23283064365386963e-26*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(e),n.s0<0&&(n.s0+=1),n.s1-=r(e),n.s1<0&&(n.s1+=1),n.s2-=r(e),n.s2<0&&(n.s2+=1)}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function u(e,t){var n=new a(e),r=t&&t.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+(2097152*i()|0)*11102230246251565e-32},i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0!==(r=(function(){return u}).call(t,n,t,i))&&(i.exports=r):this.alea=u}(0,e=n.nmd(e),n.amdD)},33929:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0!==(r=(function(){return u}).call(t,n,t,i))&&(i.exports=r):this.tychei=u}(0,e=n.nmd(e),n.amdD)},12824:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0!==(r=(function(){return u}).call(t,n,t,i))&&(i.exports=r):this.xor128=u}(0,e=n.nmd(e),n.amdD)},45028:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.w,i=t.X,o=t.i;return t.w=r=r+1640531527|0,n=i[o+34&127],e=i[o=o+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=i[o]=n^e,t.i=o,n+(r^r>>>16)|0},function(e,t){var n,r,i,o,a,s=[],u=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,u=Math.max(u,t.length)),i=0,o=-32;o>>15,r^=r<<4,r^=r>>>13,o>=0&&(a=a+1640531527|0,i=0==(n=s[127&o]^=r+a)?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;e.w=a,e.X=s,e.i=i}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function u(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0!==(r=(function(){return u}).call(t,n,t,i))&&(i.exports=r):this.xor4096=u}(0,e=n.nmd(e),n.amdD)},10330:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],e^=e>>>7,n=e^e<<24^((e=r[i+1&7])^e>>>10)^((e=r[i+3&7])^e>>>3)^((e=r[i+4&7])^e<<7),e=r[i+7&7],e^=e<<13,n^=e^e<<9,r[i]=n,t.i=i+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(n=0,t=""+t;n0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function u(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0!==(r=(function(){return u}).call(t,n,t,i))&&(i.exports=r):this.xorshift7=u}(0,e=n.nmd(e),n.amdD)},244:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^(e^e<<1))|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function u(e,t){var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/2097152;while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0!==(r=(function(){return u}).call(t,n,t,i))&&(i.exports=r):this.xorwow=u}(0,e=n.nmd(e),n.amdD)},53154:function(e,t,n){var r;!function(i,o,a){var s,u=a.pow(256,6),l=a.pow(2,52),c=2*l;function d(e,t,n){var r=[],d=f(function e(t,n){var r,i=[],o=typeof t;if(n&&"object"==o)for(r in t)try{i.push(e(t[r],n-1))}catch(e){}return i.length?i:"string"==o?t:t+"\0"}((t=!0==t?{entropy:!0}:t||{}).entropy?[e,m(o)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(256):(e=new Uint8Array(256),(i.crypto||i.msCrypto).getRandomValues(e)),m(e)}catch(e){var t=i.navigator,n=t&&t.plugins;return[+new Date,i,n,i.screen,m(o)]}}():e,3),r),g=new h(r),v=function(){for(var e=g.g(6),t=u,n=0;e=c;)e/=2,t/=2,n>>>=1;return(e+n)/t};return v.int32=function(){return 0|g.g(4)},v.quick=function(){return g.g(4)/4294967296},v.double=v,f(m(g.S),o),(t.pass||n||function(e,t,n,r){return(r&&(r.S&&p(r,g),e.state=function(){return p(g,{})}),n)?(a.random=e,t):e})(v,d,"global"in t?t.global:this==a,t.state)}function h(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);i<256;)a[i]=i++;for(i=0;i<256;i++)a[i]=a[o=255&o+e[i%n]+(t=a[i])],a[o]=t;(r.g=function(e){for(var t,n=0,i=r.i,o=r.j,a=r.S;e--;)t=a[i=255&i+1],n=256*n+a[255&(a[i]=a[o=255&o+t])+(a[o]=t)];return r.i=i,r.j=o,n})(256)}function p(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){for(var n,r=e+"",i=0;i>>25)+r|0)&r|~n&i)+t[1]-389564586|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[4]-176418897|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[8]+1770035416|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0,n+=((r=(r<<22|r>>>10)+i|0)&i|~r&o)+t[12]+1804603682|0,o+=((n=(n<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0,i+=((o=(o<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0,r+=((i=(i<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0,n+=((r=(r<<22|r>>>10)+i|0)&o|i&~o)+t[1]-165796510|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[5]-701558691|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[9]+568446438|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0,n+=((r=(r<<20|r>>>12)+i|0)&o|i&~o)+t[13]-1444681467|0,o+=((n=(n<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0,i+=((o=(o<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0,r+=((i=(i<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0,n+=((r=(r<<20|r>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[1]-1530992060|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[13]+681279174|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0,n+=((r=(r<<23|r>>>9)+i|0)^i^o)+t[9]-640364487|0,o+=((n=(n<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0,i+=((o=(o<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0,r+=((i=(i<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,u,l=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(c,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(c,o),c}function a(e){var n;for(n=0;n>8*n+4&15]+t[e>>8*n&15];return r}(e[n]);return e.join("")}function s(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e){var t,n=[],r=e.length;for(t=0;tc)?new ArrayBuffer(0):(a=new Uint8Array(o=new ArrayBuffer(i=c-l)),s=new Uint8Array(this,l,i),a.set(s),o)}}(),l.prototype.append=function(e){return this.appendBinary(s(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=u(n)),this.reset(),n},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;i=parseInt((r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},l.hash=function(e,t){return l.hashBinary(s(e),t)},l.hashBinary=function(e,t){var n=a(o(e));return t?u(n):n},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,r,o,a=((r=new Uint8Array((t=this._buff.buffer).byteLength+e.byteLength)).set(new Uint8Array(t)),r.set(new Uint8Array(e),t.byteLength),r),s=a.length;for(this._length+=e.byteLength,o=64;o<=s;o+=64)n(this._hash,i(a.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=a(this._hash),e&&(n=u(n)),this.reset(),n},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(c,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(c,o),c}(new Uint8Array(e)));return t?u(r):r},l},e.exports=t()},66545:function(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0||e instanceof Object)?t(e):null)},y.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r=Error("cannot ".concat(t," ").concat(n," (").concat(this.status,")"));return r.status=this.status,r.method=t,r.url=n,r},p.Response=y,o(b.prototype),u(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},b.prototype.auth=function(e,t,n){return 1==arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw Error("Cannot use basic auth, btoa is not a function")})},b.prototype.query=function(e){return"string"!=typeof e&&(e=m(e)),e&&this._query.push(e),this},b.prototype.attach=function(e,t,n){if(t){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},b.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},b.prototype.crossDomainError=function(){var e=Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},b.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},b.prototype._end=function(){if(this._aborted)return this.callback(Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n,r=t.readyState;if(r>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===r){try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||p.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=p.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new d},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){d.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),d.prototype.del=d.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},73354:function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},2474:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=n(73354);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return(0==arguments.length||!0===e)&&(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}return!!(t&&t.status&&s.has(t.status)||e&&(e.code&&a.has(e.code)||e.timeout&&"ECONNABORTED"===e.code||e.crossDomain))},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){r.on("abort",function(){if(!n._maxRetries||!(n._maxRetries>n._retries)){if(n.timedout&&n.timedoutError){t(n.timedoutError);return}var e=Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),r.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(i(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw Error(".field(name, val) name can not be empty");if(this._data)throw Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(i(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=i(e),n=this._header["content-type"];if(this._formData)throw Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&i(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),(n=this._header["content-type"])&&(n=n.toLowerCase().trim()),"application/x-www-form-urlencoded"===n?this._data=this._data?"".concat(this._data,"&").concat(e):e:this._data=(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},99228:function(e,t,n){"use strict";var r=n(62433);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},62433:function(e,t){"use strict";function n(e,t){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,u=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(u)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(n.h,a,f),g=!0,v="hsl"),n.hasOwnProperty("a")&&(o=n.a)),o=F(o),{ok:g,format:n.format||v,r:h(255,p(r.r,0)),g:h(255,p(r.g,0)),b:h(255,p(r.b,0)),a:o});this._originalInput=e,this._r=T.r,this._g=T.g,this._b=T.b,this._a=T.a,this._roundA=d(100*this._a)/100,this._format=t.format||T.format,this._gradientType=t.gradientType,this._r<1&&(this._r=d(this._r)),this._g<1&&(this._g=d(this._g)),this._b<1&&(this._b=d(this._b)),this._ok=T.ok,this._tc_id=c++}function g(e,t,n){var r,i,o=p(e=N(e,255),t=N(t,255),n=N(n,255)),a=h(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(m(r));return o}function P(e,t){t=t||6;for(var n=m(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(m({h:r,s:i,v:o})),o=(o+s)%1;return a}m.prototype={isDark:function(){return 128>this.getBrightness()},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=F(e),this._roundA=d(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=d(360*e.h),n=d(100*e.s),r=d(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=g(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=g(this._r,this._g,this._b),t=d(360*e.h),n=d(100*e.s),r=d(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){var t,n,r,i,o;return t=this._r,n=this._g,r=this._b,i=this._a,o=[B(d(t).toString(16)),B(d(n).toString(16)),B(d(r).toString(16)),B(U(i))],e&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:d(this._r),g:d(this._g),b:d(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+d(this._r)+", "+d(this._g)+", "+d(this._b)+")":"rgba("+d(this._r)+", "+d(this._g)+", "+d(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:d(100*N(this._r,255))+"%",g:d(100*N(this._g,255))+"%",b:d(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+d(100*N(this._r,255))+"%, "+d(100*N(this._g,255))+"%, "+d(100*N(this._b,255))+"%)":"rgba("+d(100*N(this._r,255))+"%, "+d(100*N(this._g,255))+"%, "+d(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=m(e);n="#"+b(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e)?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return m(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(D,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(j,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&("a"===r?n[r]=e[r]:n[r]=z(e[r]));e=n}return m(e,t)},m.equals=function(e,t){return!!e&&!!t&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:f(),g:f(),b:f()})},m.mix=function(e,t,n){n=0===n?0:n||50;var r=m(e).toRgb(),i=m(t).toRgb(),o=n/100;return m({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},m.readability=function(e,t){var n=m(e),r=m(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},m.isReadable=function(e,t,n){var r,i,o,a,s,u=m.readability(e,t);switch(s=!1,(i=((r=(r=n)||{level:"AA",size:"small"}).level||"AA").toUpperCase(),o=(r.size||"small").toLowerCase(),"AA"!==i&&"AAA"!==i&&(i="AA"),"small"!==o&&"large"!==o&&(o="small"),a={level:i,size:o}).level+a.size){case"AAsmall":case"AAAlarge":s=u>=4.5;break;case"AAlarge":s=u>=3;break;case"AAAsmall":s=u>=7}return s},m.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var l=0;lu&&(u=r,s=m(t[l]));return m.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],n))};var R=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=m.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(R);function F(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function N(e,t){"string"==typeof(n=e)&&-1!=n.indexOf(".")&&1===parseFloat(n)&&(e="100%");var n,r,o="string"==typeof(r=e)&&-1!=r.indexOf("%");return(e=h(t,p(0,parseFloat(e))),o&&(e=parseInt(e*t,10)/100),1e-6>i.abs(e-t))?1:e%t/parseFloat(t)}function I(e){return h(1,p(0,e))}function L(e){return parseInt(e,16)}function B(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function U(e){return i.round(255*parseFloat(e)).toString(16)}var q=(a="[\\s|\\(]+("+(o="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+o+")[,|\\s]+("+o+")\\s*\\)?",s="[\\s|\\(]+("+o+")[,|\\s]+("+o+")[,|\\s]+("+o+")[,|\\s]+("+o+")\\s*\\)?",{CSS_UNIT:new RegExp(o),rgb:RegExp("rgb"+a),rgba:RegExp("rgba"+s),hsl:RegExp("hsl"+a),hsla:RegExp("hsla"+s),hsv:RegExp("hsv"+a),hsva:RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!q.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0!==(r=(function(){return m}).call(t,n,t,e))&&(e.exports=r)}(Math)},55079:function(e,t,n){"use strict";var r=n(62465),i=n(51414),o="tippy-content",a="tippy-arrow",s="tippy-svg-arrow",u={passive:!0,capture:!0},l=function(){return document.body};function c(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function d(e,t){var n=({}).toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function h(e,t){return"function"==typeof e?e.apply(void 0,t):e}function p(e,t){var n;return 0===t?e:function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function f(e){return[].concat(e)}function m(e,t){-1===e.indexOf(t)&&e.push(t)}function g(e){return[].slice.call(e)}function v(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function y(){return document.createElement("div")}function b(e){return["Element","Fragment"].some(function(t){return d(e,t)})}function w(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function k(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function x(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[r](t,n)})}function _(e,t){for(var n,r=t;r;){if(e.contains(r))return!0;r=null==r.getRootNode?void 0:null==(n=r.getRootNode())?void 0:n.host}return!1}var S={isTouch:!1},E=0;function D(){!S.isTouch&&(S.isTouch=!0,window.performance&&document.addEventListener("mousemove",C))}function C(){var e=performance.now();e-E<20&&(S.isTouch=!1,document.removeEventListener("mousemove",C)),E=e}function j(){var e=document.activeElement;if(e&&e._tippy&&e._tippy.reference===e){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var O=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,T=Object.assign({appendTo:l,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),A=Object.keys(T);function P(e){var t=(e.plugins||[]).reduce(function(t,n){var r,i=n.name,o=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=T[i])?r:o),t},{});return Object.assign({},e,t)}function R(e,t){var n,r=Object.assign({},t,{content:h(t.content,[e])},t.ignoreAttributes?{}:((n=t.plugins)?Object.keys(P(Object.assign({},T,{plugins:n}))):A).reduce(function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t},{}));return r.aria=Object.assign({},T.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function M(e,t){e.innerHTML=t}function F(e){var t=y();return!0===e?t.className=a:(t.className=s,b(e)?t.appendChild(e):M(t,e)),t}function N(e,t){b(t.content)?(M(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?M(e,t.content):e.textContent=t.content)}function I(e){var t=e.firstElementChild,n=g(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(o)}),arrow:n.find(function(e){return e.classList.contains(a)||e.classList.contains(s)}),backdrop:n.find(function(e){return e.classList.contains("tippy-backdrop")})}}function L(e){var t=y(),n=y();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=y();function i(n,r){var i=I(t),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&N(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(F(r.arrow))):o.appendChild(F(r.arrow)):s&&o.removeChild(s)}return r.className=o,r.setAttribute("data-state","hidden"),N(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}L.$$tippy=!0;var B=1,z=[],U=[];function q(e,t){void 0===t&&(t={});var n=T.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",D,u),window.addEventListener("blur",j);var i=Object.assign({},t,{plugins:n}),o=(b(e)?[e]:d(e,"NodeList")?g(e):Array.isArray(e)?e:g(document.querySelectorAll(e))).reduce(function(e,t){var n=t&&function(e,t){var n,i,o,a,s,b,E,D,C=R(e,Object.assign({},T,P(v(t)))),j=!1,A=!1,M=!1,F=!1,N=[],L=p(eg,C.interactiveDebounce),q=B++,$=(n=C.plugins).filter(function(e,t){return n.indexOf(e)===t}),H={id:q,reference:e,popper:y(),popperInstance:null,props:C,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:$,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(a)},setProps:function(t){if(!H.state.isDestroyed){en("onBeforeUpdate",[H,t]),ef();var n=H.props,r=R(e,Object.assign({},n,v(t),{ignoreAttributes:!0}));H.props=r,ep(),n.interactiveDebounce!==r.interactiveDebounce&&(eo(),L=p(eg,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?f(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):r.triggerTarget&&e.removeAttribute("aria-expanded"),ei(),et(),G&&G(n,r),H.popperInstance&&(ew(),ex().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),en("onAfterUpdate",[H,t])}},setContent:function(e){H.setProps({content:e})},show:function(){var t,n,r,i=H.state.isVisible,o=H.state.isDestroyed,a=!H.state.isEnabled,s=S.isTouch&&!H.props.touch,u=c(H.props.duration,0,T.duration);if(!(i||o||a||s||(D||e).hasAttribute("disabled"))&&(en("onShow",[H],!1),!1!==H.props.onShow(H))){if(H.state.isVisible=!0,X()&&(V.style.visibility="visible"),et(),el(),H.state.isMounted||(V.style.transition="none"),X()){var d=I(V);w([d.box,d.content],0)}E=function(){var e;if(H.state.isVisible&&!F){if(F=!0,V.offsetHeight,V.style.transition=H.props.moveTransition,X()&&H.props.animation){var t=I(V),n=t.box,r=t.content;w([n,r],u),k([n,r],"visible")}er(),ei(),m(U,H),null==(e=H.popperInstance)||e.forceUpdate(),en("onMount",[H]),H.props.animation&&X()&&ed(u,function(){H.state.isShown=!0,en("onShown",[H])})}},n=H.props.appendTo,r=D||e,(t=H.props.interactive&&n===l||"parent"===n?r.parentNode:h(n,[r])).contains(V)||t.appendChild(V),H.state.isMounted=!0,ew()}},hide:function(){var e,t=!H.state.isVisible,n=H.state.isDestroyed,r=!H.state.isEnabled,i=c(H.props.duration,1,T.duration);if(!t&&!n&&!r&&(en("onHide",[H],!1),!1!==H.props.onHide(H))){if(H.state.isVisible=!1,H.state.isShown=!1,F=!1,j=!1,X()&&(V.style.visibility="hidden"),eo(),ec(),et(!0),X()){var o=I(V),a=o.box,s=o.content;H.props.animation&&(w([a,s],i),k([a,s],"hidden"))}(er(),ei(),H.props.animation)?X()&&(e=H.unmount,ed(i,function(){!H.state.isVisible&&V.parentNode&&V.parentNode.contains(V)&&e()})):H.unmount()}},hideWithInteractivity:function(e){Q().addEventListener("mousemove",L),m(z,L),L(e)},enable:function(){H.state.isEnabled=!0},disable:function(){H.hide(),H.state.isEnabled=!1},unmount:function(){H.state.isVisible&&H.hide(),H.state.isMounted&&(ek(),ex().forEach(function(e){e._tippy.unmount()}),V.parentNode&&V.parentNode.removeChild(V),U=U.filter(function(e){return e!==H}),H.state.isMounted=!1,en("onHidden",[H]))},destroy:function(){H.state.isDestroyed||(H.clearDelayTimeouts(),H.unmount(),ef(),delete e._tippy,H.state.isDestroyed=!0,en("onDestroy",[H]))}};if(!C.render)return H;var W=C.render(H),V=W.popper,G=W.onUpdate;V.setAttribute("data-tippy-root",""),V.id="tippy-"+H.id,H.popper=V,e._tippy=H,V._tippy=H;var Y=$.map(function(e){return e.fn(H)}),Z=e.hasAttribute("aria-expanded");return ep(),ei(),et(),en("onCreate",[H]),C.showOnCreate&&e_(),V.addEventListener("mouseenter",function(){H.props.interactive&&H.state.isVisible&&H.clearDelayTimeouts()}),V.addEventListener("mouseleave",function(){H.props.interactive&&H.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",L)}),H;function K(){var e=H.props.touch;return Array.isArray(e)?e:[e,0]}function J(){return"hold"===K()[0]}function X(){var e;return!!(null!=(e=H.props.render)&&e.$$tippy)}function Q(){var t,n,r=(D||e).parentNode;return r&&null!=(n=f(r)[0])&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function ee(e){return H.state.isMounted&&!H.state.isVisible||S.isTouch||s&&"focus"===s.type?0:c(H.props.delay,e?0:1,T.delay)}function et(e){void 0===e&&(e=!1),V.style.pointerEvents=H.props.interactive&&!e?"":"none",V.style.zIndex=""+H.props.zIndex}function en(e,t,n){if(void 0===n&&(n=!0),Y.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=H.props)[e].apply(r,t)}}function er(){var t=H.props.aria;if(t.content){var n="aria-"+t.content,r=V.id;f(H.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(H.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function ei(){!Z&&H.props.aria.expanded&&f(H.props.triggerTarget||e).forEach(function(t){H.props.interactive?t.setAttribute("aria-expanded",H.state.isVisible&&t===(D||e)?"true":"false"):t.removeAttribute("aria-expanded")})}function eo(){Q().removeEventListener("mousemove",L),z=z.filter(function(e){return e!==L})}function ea(t){if(!S.isTouch||!M&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(H.props.interactive&&_(V,n))){if(f(H.props.triggerTarget||e).some(function(e){return _(e,n)})){if(S.isTouch||H.state.isVisible&&H.props.trigger.indexOf("click")>=0)return}else en("onClickOutside",[H,t]);!0!==H.props.hideOnClick||(H.clearDelayTimeouts(),H.hide(),A=!0,setTimeout(function(){A=!1}),H.state.isMounted||ec())}}}function es(){M=!0}function eu(){M=!1}function el(){var e=Q();e.addEventListener("mousedown",ea,!0),e.addEventListener("touchend",ea,u),e.addEventListener("touchstart",eu,u),e.addEventListener("touchmove",es,u)}function ec(){var e=Q();e.removeEventListener("mousedown",ea,!0),e.removeEventListener("touchend",ea,u),e.removeEventListener("touchstart",eu,u),e.removeEventListener("touchmove",es,u)}function ed(e,t){var n=I(V).box;function r(e){e.target===n&&(x(n,"remove",r),t())}if(0===e)return t();x(n,"remove",b),x(n,"add",r),b=r}function eh(t,n,r){void 0===r&&(r=!1),f(H.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),N.push({node:e,eventType:t,handler:n,options:r})})}function ep(){J()&&(eh("touchstart",em,{passive:!0}),eh("touchend",ev,{passive:!0})),H.props.trigger.split(/\s+/).filter(Boolean).forEach(function(e){if("manual"!==e)switch(eh(e,em),e){case"mouseenter":eh("mouseleave",ev);break;case"focus":eh(O?"focusout":"blur",ey);break;case"focusin":eh("focusout",ey)}})}function ef(){N.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),N=[]}function em(e){var t,n=!1;if(!(!H.state.isEnabled||eb(e))&&!A){var r=(null==(t=s)?void 0:t.type)==="focus";s=e,D=e.currentTarget,ei(),!H.state.isVisible&&d(e,"MouseEvent")&&z.forEach(function(t){return t(e)}),"click"===e.type&&(0>H.props.trigger.indexOf("mouseenter")||j)&&!1!==H.props.hideOnClick&&H.state.isVisible?n=!0:e_(e),"click"===e.type&&(j=!n),n&&!r&&eS(e)}}function eg(t){var n,r,i,o=t.target,a=(D||e).contains(o)||V.contains(o);("mousemove"!==t.type||!a)&&(n=ex().concat(V).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:C}:null}).filter(Boolean),r=t.clientX,i=t.clientY,n.every(function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,a=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,c="right"===a?s.left.x:0,d="left"===a?s.right.x:0,h=t.top-i+u>o,p=i-t.bottom-l>o,f=t.left-r+c>o,m=r-t.right-d>o;return h||p||f||m})&&(eo(),eS(t)))}function ev(e){if(!(eb(e)||H.props.trigger.indexOf("click")>=0&&j)){if(H.props.interactive){H.hideWithInteractivity(e);return}eS(e)}}function ey(t){0>H.props.trigger.indexOf("focusin")&&t.target!==(D||e)||H.props.interactive&&t.relatedTarget&&V.contains(t.relatedTarget)||eS(t)}function eb(e){return!!S.isTouch&&J()!==e.type.indexOf("touch")>=0}function ew(){ek();var t=H.props,n=t.popperOptions,i=t.placement,o=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,u=X()?I(V).arrow:null,l=a?{getBoundingClientRect:a,contextElement:a.contextElement||D||e}:e,c=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(X()){var n=I(V).box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}}];X()&&u&&c.push({name:"arrow",options:{element:u,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),H.popperInstance=(0,r.fi)(l,V,Object.assign({},n,{placement:i,onFirstUpdate:E,modifiers:c}))}function ek(){H.popperInstance&&(H.popperInstance.destroy(),H.popperInstance=null)}function ex(){return g(V.querySelectorAll("[data-tippy-root]"))}function e_(e){H.clearDelayTimeouts(),e&&en("onTrigger",[H,e]),el();var t=ee(!0),n=K(),r=n[0],o=n[1];S.isTouch&&"hold"===r&&o&&(t=o),t?i=setTimeout(function(){H.show()},t):H.show()}function eS(e){if(H.clearDelayTimeouts(),en("onUntrigger",[H,e]),!H.state.isVisible){ec();return}if(!(H.props.trigger.indexOf("mouseenter")>=0&&H.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0)||!j){var t=ee(!1);t?o=setTimeout(function(){H.state.isVisible&&H.hide()},t):a=requestAnimationFrame(function(){H.hide()})}}}(t,i);return n&&e.push(n),e},[]);return b(e)?o[0]:o}q.defaultProps=T,q.setDefaultProps=function(e){Object.keys(e).forEach(function(t){T[t]=e[t]})},q.currentInput=S,Object.assign({},i.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),q.setDefaultProps({render:L}),t.ZP=q},48943:function(e,t,n){"use strict";var r=n(38398),i=null,o=function(e,t){let r=t&&t.allowPrivateTLD||!1,o=t&&t.allowUnknownTLD||!1,a=t&&t.allowDotlessTLD||!1;i||((i=n(20693)).combined=Object.assign({},i.icann,i.private));for(var s,u=e.split("."),l="",c=-1,d=r?i.combined:i.icann,h=u.length-1;h>=0;h--)s=u[h],d[l=l?s+"."+l:s]&&(c=d[l]);if(-1==c&&o&&(c=1),(u.length<=c||-1==c)&&!(u.length==c&&a))throw Error("Invalid TLD "+JSON.stringify({parts:u,tld_level:c,allowUnknownTLD:o}));return{tld:u.slice(-c).join("."),domain:u.slice(-c-1).join("."),sub:u.slice(0,-c-1).join(".")}};e.exports=function(e,t){return"string"==typeof e&&(e=r.parse(e)),o(e.hostname,t)},e.exports.parse_host=o},91706:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i=0}function d(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}var h={};function p(e){return e?e.replace(/(\n+\s*)+/g,"\n"):""}function f(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function m(e,t,n){for(var r=0;r-1)return!0}else if("function"==typeof r){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}(i,t,n))return i}}function g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function v(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}h.paragraph={filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},h.lineBreak={filter:"br",replacement:function(e,t,n){return n.br+"\n"}},h.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var i=Number(t.nodeName.charAt(1));if("setext"!==r.headingStyle||!(i<3))return"\n\n"+n("#",i)+" "+e+"\n\n";var o=n(1===i?"=":"-",e.length);return"\n\n"+e+"\n"+o+"\n\n"}},h.blockquote={filter:"blockquote",replacement:function(e){return"\n\n"+(e=(e=e.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+"\n\n"}},h.list={filter:["ul","ol"],replacement:function(e,t){var n=t.parentNode;return"LI"===n.nodeName&&n.lastElementChild===t?"\n"+e:"\n\n"+e+"\n\n"}},h.listItem={filter:"li",replacement:function(e,t,n){e=e.replace(/^\n+/,"").replace(/\n+$/,"\n").replace(/\n/gm,"\n ");var r=n.bulletListMarker+" ",i=t.parentNode;if("OL"===i.nodeName){var o=i.getAttribute("start"),a=Array.prototype.indexOf.call(i.children,t);r=(o?Number(o)+a:a+1)+". "}return r+e+(t.nextSibling&&!/\n$/.test(e)?"\n":"")}},h.indentedCodeBlock={filter:function(e,t){return"indented"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,n){return"\n\n "+t.firstChild.textContent.replace(/\n/g,"\n ")+"\n\n"}},h.fencedCodeBlock={filter:function(e,t){return"fenced"===t.codeBlockStyle&&"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t,r){for(var i,o=((t.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a=t.firstChild.textContent,s=r.fence.charAt(0),u=3,l=RegExp("^"+s+"{3,}","gm");i=l.exec(a);)i[0].length>=u&&(u=i[0].length+1);var c=n(s,u);return"\n\n"+c+o+"\n"+a.replace(/\n$/,"")+"\n"+c+"\n\n"}},h.horizontalRule={filter:"hr",replacement:function(e,t,n){return"\n\n"+n.hr+"\n\n"}},h.inlineLink={filter:function(e,t){return"inlined"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.getAttribute("href"),r=p(t.getAttribute("title"));return r&&(r=' "'+r+'"'),"["+e+"]("+n+r+")"}},h.referenceLink={filter:function(e,t){return"referenced"===t.linkStyle&&"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t,n){var r,i,o=t.getAttribute("href"),a=p(t.getAttribute("title"));switch(a&&(a=' "'+a+'"'),n.linkReferenceStyle){case"collapsed":r="["+e+"][]",i="["+e+"]: "+o+a;break;case"shortcut":r="["+e+"]",i="["+e+"]: "+o+a;break;default:var s=this.references.length+1;r="["+e+"]["+s+"]",i="["+s+"]: "+o+a}return this.references.push(i),r},references:[],append:function(e){var t="";return this.references.length&&(t="\n\n"+this.references.join("\n")+"\n\n",this.references=[]),t}},h.emphasis={filter:["em","i"],replacement:function(e,t,n){return e.trim()?n.emDelimiter+e+n.emDelimiter:""}},h.strong={filter:["strong","b"],replacement:function(e,t,n){return e.trim()?n.strongDelimiter+e+n.strongDelimiter:""}},h.code={filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",n="`",r=e.match(/`+/gm)||[];-1!==r.indexOf(n);)n+="`";return n+t+e+t+n}},h.image={filter:"img",replacement:function(e,t){var n=p(t.getAttribute("alt")),r=t.getAttribute("src")||"",i=p(t.getAttribute("title"));return r?"!["+n+"]("+r+(i?' "'+i+'"':"")+")":""}},f.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){var t;return e.isBlank?this.blankRule:(t=m(this.array,e,this.options))||(t=m(this._keep,e,this.options))||(t=m(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t'+e+"","text/html").getElementById("turndown-root"):e.cloneNode(!0),isBlock:a,isVoid:u,isPre:t.preformattedCode?k:null}),n}function k(e){return"PRE"===e.nodeName||"CODE"===e.nodeName}function x(e,t){return e.isBlock=a(e),e.isCode="CODE"===e.nodeName||e.parentNode.isCode,e.isBlank=!u(e)&&!c(e,l)&&/^\s*$/i.test(e.textContent)&&!d(e,s)&&!d(e,l),e.flankingWhitespace=function(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var n,r={leading:(n=e.textContent.match(/^(([ \t\r\n]*)(\s*))[\s\S]*?((\s*?)([ \t\r\n]*))$/))[1],leadingAscii:n[2],leadingNonAscii:n[3],trailing:n[4],trailingNonAscii:n[5],trailingAscii:n[6]};return r.leadingAscii&&_("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&_("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}(e,t),e}function _(e,t,n){var r,i,o;return"left"===e?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(3===r.nodeType?o=i.test(r.nodeValue):n.preformattedCode&&"CODE"===r.nodeName?o=!1:1!==r.nodeType||a(r)||(o=i.test(r.textContent))),o}var S=Array.prototype.reduce,E=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function D(e){if(!(this instanceof D))return new D(e);this.options=function(e){for(var t=1;t0&&"\n"===e[t-1];)t--;return e.substring(0,t)}(e),r=t.replace(/^\n*/,""),i=Math.max(e.length-n.length,t.length-r.length);return n+"\n\n".substring(0,i)+r}D.prototype={turndown:function(e){if(!(null!=e&&("string"==typeof e||e.nodeType&&(1===e.nodeType||9===e.nodeType||11===e.nodeType))))throw TypeError(e+" is not a string, or an element/document/fragment node.");return""===e?"":j.call(this,C.call(this,new w(e,this.options)))},use:function(e){if(Array.isArray(e))for(var t=0;t0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4==s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):o):this[s]=c||o;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r255?x.trim(e,255):e,this},this.setUA(n),this};D.VERSION="0.7.28",D.BROWSER={NAME:d,MAJOR:"major",VERSION:f},D.CPU={ARCHITECTURE:m},D.DEVICE={MODEL:c,VENDOR:p,TYPE:h,CONSOLE:g,MOBILE:v,SMARTTV:b,TABLET:y,WEARABLE:w,EMBEDDED:k},D.ENGINE={NAME:d,VERSION:f},D.OS={NAME:d,VERSION:f},typeof t!==s?(e.exports&&(t=e.exports=D),t.UAParser=D):o!==(r=(function(){return D}).call(t,n,t,e))&&(e.exports=r);var C=void 0!==i&&(i.jQuery||i.Zepto);if(C&&!C.ua){var j=new D;C.ua=j.getResult(),C.ua.get=function(){return j.getUA()},C.ua.set=function(e){j.setUA(e);var t=j.getResult();for(var n in t)C.ua[n]=t[n]}}}("object"==typeof window?window:this)},42396:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,(r=n=t.ErrorType||(t.ErrorType={})).MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING",t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},62770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unraw=t.errorMessages=t.ErrorType=void 0;let r=n(42396);function i(e,t,n){let i=e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16);if(Number.isNaN(i)||void 0!==n&&n!==e.length)throw SyntaxError(r.errorMessages.get(t));return i}function o(e,t){let n=i(e,r.ErrorType.MalformedUnicode,4);return void 0!==t?String.fromCharCode(n,i(t,r.ErrorType.MalformedUnicode,4)):String.fromCharCode(n)}Object.defineProperty(t,"ErrorType",{enumerable:!0,get:function(){return r.ErrorType}}),Object.defineProperty(t,"errorMessages",{enumerable:!0,get:function(){return r.errorMessages}});let a=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t"," "],["v","\v"],["0","\0"]]),s=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function u(e,t=!1){return e.replace(s,function(e,n,s,u,l,c,d,h,p){if(void 0!==n)return"\\";if(void 0!==s)return String.fromCharCode(i(s,r.ErrorType.MalformedHexadecimal,2));if(void 0!==u)return function(e){if(!("{"===e.charAt(0)&&"}"===e.charAt(e.length-1)))throw SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));let t=i(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(t)}catch(e){throw e instanceof RangeError?SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(u);if(void 0!==l)return o(l,c);if(void 0!==d)return o(d);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));return String.fromCharCode(parseInt(e,8))}(h,!t);if(void 0!==p)return a.get(p)||p;throw SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))})}t.unraw=u,t.default=u},64846:function(e,t,n){"use strict";var r=n(57245),i=n(97375),o=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(o,"")}var h=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){"undefined"!=typeof window?t=window:void 0!==n.g?t=n.g:"undefined"!=typeof self?t=self:t={};var t,r,i=t.location||{},o={},a=typeof(e=e||i);if("blob:"===e.protocol)o=new v(unescape(e.pathname),{});else if("string"===a)for(r in o=new v(e,{}),p)delete o[r];else if("object"===a){for(r in e)r in p||(o[r]=e[r]);void 0===o.slashes&&(o.slashes=s.test(e.href))}return o}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=(e=d(e)).replace(a,""),t=t||{};var n,r=l.exec(e),i=r[1]?r[1].toLowerCase():"",o=!!r[2],s=!!r[3],u=0;return o?s?(n=r[2]+r[3]+r[4],u=r[2].length+r[3].length):(n=r[2]+r[4],u=r[2].length):s?(n=r[3]+r[4],u=r[3].length):n=r[4],"file:"===i?u>=2&&(n=n.slice(2)):m(i)?n=r[4]:i?o&&(n=n.slice(2)):u>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:o||m(i),slashesCount:u,rest:n}}function v(e,t,n){if(e=(e=d(e)).replace(a,""),!(this instanceof v))return new v(e,t,n);var o,s,u,l,p,y,b=h.slice(),w=typeof t,k=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!=typeof n&&(n=i.parse),o=!(s=g(e||"",t=f(t))).protocol&&!s.slashes,this.slashes=s.slashes||o&&t.slashes,this.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||c.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(this.protocol)))&&(b[3]=[/(.*)/,"pathname"]);kt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}},20452:function(e,t,n){"use strict";var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,l(i)&&c({inst:i})},[e,n,t]),a(function(){return l(i)&&c({inst:i}),e(function(){l(i)&&c({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},80402:function(e,t,n){"use strict";var r=n(2784),i=n(43100),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var p=a(e,(d=l(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,i]))[0],d[1]);return u(function(){h.hasValue=!0,h.value=p},[p]),c(p),p}},43100:function(e,t,n){"use strict";e.exports=n(20452)},41110:function(e,t,n){"use strict";e.exports=n(80402)},70681:function(e,t,n){!function(e){"use strict";let t;let r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:e=>`Symbol(${e})`;function i(){}let o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0;function a(e){return"object"==typeof e&&null!==e||"function"==typeof e}let s=Promise,u=Promise.prototype.then,l=Promise.resolve.bind(s),c=Promise.reject.bind(s);function d(e){return new s(e)}function h(e,t,n){return u.call(e,t,n)}function p(e,t,n){h(h(e,t,n),void 0,i)}function f(e,t){p(e,void 0,t)}function m(e){h(e,void 0,i)}let g=(()=>{let e=o&&o.queueMicrotask;if("function"==typeof e)return e;let t=l(void 0);return e=>h(t,e)})();function v(e,t,n){if("function"!=typeof e)throw TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,n)}function y(e,t,n){try{var r;return r=v(e,t,n),l(r)}catch(e){return c(e)}}class b{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){let t=this._back,n=t;16383===t._elements.length&&(n={_elements:[],_next:void 0}),t._elements.push(e),n!==t&&(this._back=n,t._next=n),++this._size}shift(){let e=this._front,t=e,n=this._cursor,r=n+1,i=e._elements,o=i[n];return 16384===r&&(t=e._next,r=0),--this._size,this._cursor=r,e!==t&&(this._front=t),i[n]=void 0,o}forEach(e){let t=this._cursor,n=this._front,r=n._elements;for(;!(t===r.length&&void 0===n._next||t===r.length&&(r=(n=n._next)._elements,t=0,0===r.length));)e(r[t]),++t}peek(){let e=this._front,t=this._cursor;return e._elements[t]}}function w(e,t){var n;e._ownerReadableStream=t,t._reader=e,"readable"===t._state?S(e):"closed"===t._state?(S(e),D(e)):(n=t._storedError,S(e),E(e,n))}function k(e,t){return t$(e._ownerReadableStream,t)}function x(e){var t;"readable"===e._ownerReadableStream._state?E(e,TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):(t=TypeError("Reader was released and can no longer be used to monitor the stream's closedness"),S(e),E(e,t)),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function _(e){return TypeError("Cannot "+e+" a stream using a released reader")}function S(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n})}function E(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function D(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}let C=r("[[AbortSteps]]"),j=r("[[ErrorSteps]]"),O=r("[[CancelSteps]]"),T=r("[[PullSteps]]"),A=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},P=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function R(e,t){if(void 0!==e&&"object"!=typeof e&&"function"!=typeof e)throw TypeError(`${t} is not an object.`)}function M(e,t){if("function"!=typeof e)throw TypeError(`${t} is not a function.`)}function F(e,t){if(!("object"==typeof e&&null!==e||"function"==typeof e))throw TypeError(`${t} is not an object.`)}function N(e,t,n){if(void 0===e)throw TypeError(`Parameter ${t} is required in '${n}'.`)}function I(e,t,n){if(void 0===e)throw TypeError(`${t} is required in '${n}'.`)}function L(e){return Number(e)}function B(e,t){var n,r;let i=Number.MAX_SAFE_INTEGER,o=Number(e);if(!A(o=0===(n=o)?0:n))throw TypeError(`${t} is not a finite number`);if((o=0===(r=P(o))?0:r)<0||o>i)throw TypeError(`${t} is outside the accepted range of 0 to ${i}, inclusive`);return A(o)&&0!==o?o:0}function z(e,t){if(!tU(e))throw TypeError(`${t} is not a ReadableStream.`)}function U(e){return new V(e)}function q(e,t){e._reader._readRequests.push(t)}function $(e,t,n){let r=e._reader._readRequests.shift();n?r._closeSteps():r._chunkSteps(t)}function H(e){return e._reader._readRequests.length}function W(e){let t=e._reader;return void 0!==t&&!!G(t)}class V{constructor(e){if(N(e,1,"ReadableStreamDefaultReader"),z(e,"First parameter"),tq(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");w(this,e),this._readRequests=new b}get closed(){return G(this)?this._closedPromise:c(Z("closed"))}cancel(e){return G(this)?void 0===this._ownerReadableStream?c(_("cancel")):k(this,e):c(Z("cancel"))}read(){let e,t;if(!G(this))return c(Z("read"));if(void 0===this._ownerReadableStream)return c(_("read from"));let n=d((n,r)=>{e=n,t=r});return Y(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),n}releaseLock(){if(!G(this))throw Z("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}}function G(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof V}function Y(e,t){let n=e._ownerReadableStream;n._disturbed=!0,"closed"===n._state?t._closeSteps():"errored"===n._state?t._errorSteps(n._storedError):n._readableStreamController[T](t)}function Z(e){return TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}Object.defineProperties(V.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(V.prototype,r.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof r.asyncIterator&&Object.defineProperty(t={[r.asyncIterator](){return this}},r.asyncIterator,{enumerable:!1});class K{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){let e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?h(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){let t=()=>this._returnSteps(e);return this._ongoingPromise?h(this._ongoingPromise,t,t):t()}_nextSteps(){let e,t;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let n=this._reader;if(void 0===n._ownerReadableStream)return c(_("iterate"));let r=d((n,r)=>{e=n,t=r});return Y(n,{_chunkSteps:t=>{this._ongoingPromise=void 0,g(()=>e({value:t,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,x(n),e({value:void 0,done:!0})},_errorSteps:e=>{this._ongoingPromise=void 0,this._isFinished=!0,x(n),t(e)}}),r}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;let t=this._reader;if(void 0===t._ownerReadableStream)return c(_("finish iterating"));if(!this._preventCancel){let n=k(t,e);return x(t),h(n,()=>({value:e,done:!0}),void 0)}return x(t),l({value:e,done:!0})}}let J={next(){return X(this)?this._asyncIteratorImpl.next():c(Q("next"))},return(e){return X(this)?this._asyncIteratorImpl.return(e):c(Q("return"))}};function X(e){if(!a(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof K}catch(e){return!1}}function Q(e){return TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}void 0!==t&&Object.setPrototypeOf(J,t);let ee=Number.isNaN||function(e){return e!=e};function et(e){return e.slice()}function en(e,t,n,r,i){new Uint8Array(e).set(new Uint8Array(n,r,i),t)}function er(e,t,n){if(e.slice)return e.slice(t,n);let r=n-t,i=new ArrayBuffer(r);return en(i,0,e,t,r),i}function ei(e){return new Uint8Array(er(e.buffer,e.byteOffset,e.byteOffset+e.byteLength))}function eo(e){let t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function ea(e,t,n){if("number"!=typeof n||ee(n)||n<0||n===1/0)throw RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:n}),e._queueTotalSize+=n}function es(e){e._queue=new b,e._queueTotalSize=0}class eu{constructor(){throw TypeError("Illegal constructor")}get view(){if(!ed(this))throw eR("view");return this._view}respond(e){if(!ed(this))throw eR("respond");if(N(e,1,"respond"),e=B(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");this._view.buffer,eT(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!ed(this))throw eR("respondWithNewView");if(N(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");e.buffer,eA(this._associatedReadableByteStreamController,e)}}Object.defineProperties(eu.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(eu.prototype,r.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class el{constructor(){throw TypeError("Illegal constructor")}get byobRequest(){if(!ec(this))throw eM("byobRequest");return ej(this)}get desiredSize(){if(!ec(this))throw eM("desiredSize");return eO(this)}close(){if(!ec(this))throw eM("close");if(this._closeRequested)throw TypeError("The stream has already been closed; do not close it again!");let e=this._controlledReadableByteStream._state;if("readable"!==e)throw TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);eE(this)}enqueue(e){if(!ec(this))throw eM("enqueue");if(N(e,1,"enqueue"),!ArrayBuffer.isView(e))throw TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw TypeError("stream is closed or draining");let t=this._controlledReadableByteStream._state;if("readable"!==t)throw TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);eD(this,e)}error(e){if(!ec(this))throw eM("error");eC(this,e)}[O](e){ep(this),es(this);let t=this._cancelAlgorithm(e);return eS(this),t}[T](e){let t=this._controlledReadableByteStream;if(this._queueTotalSize>0){let t=this._queue.shift();this._queueTotalSize-=t.byteLength,eb(this);let n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(n)}let n=this._autoAllocateChunkSize;if(void 0!==n){let t;try{t=new ArrayBuffer(n)}catch(t){return void e._errorSteps(t)}let r={buffer:t,bufferByteLength:n,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(r)}q(t,e),eh(this)}}function ec(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof el}function ed(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof eu}function eh(e){if(function(e){let t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&!!(W(t)&&H(t)>0||eI(t)&&eN(t)>0||eO(e)>0)}(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,p(e._pullAlgorithm(),()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,eh(e))},t=>{eC(e,t)})}}function ep(e){ew(e),e._pendingPullIntos=new b}function ef(e,t){let n=!1;"closed"===e._state&&(n=!0);let r=em(t);"default"===t.readerType?$(e,r,n):function(e,t,n){let r=e._reader._readIntoRequests.shift();n?r._closeSteps(t):r._chunkSteps(t)}(e,r,n)}function em(e){let t=e.bytesFilled,n=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/n)}function eg(e,t,n,r){e._queue.push({buffer:t,byteOffset:n,byteLength:r}),e._queueTotalSize+=r}function ev(e,t){let n=t.elementSize,r=t.bytesFilled-t.bytesFilled%n,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+i,a=o-o%n,s=i,u=!1;a>r&&(s=a-t.bytesFilled,u=!0);let l=e._queue;for(;s>0;){let n=l.peek(),r=Math.min(s,n.byteLength),i=t.byteOffset+t.bytesFilled;en(t.buffer,i,n.buffer,n.byteOffset,r),n.byteLength===r?l.shift():(n.byteOffset+=r,n.byteLength-=r),e._queueTotalSize-=r,ey(e,r,t),s-=r}return u}function ey(e,t,n){n.bytesFilled+=t}function eb(e){0===e._queueTotalSize&&e._closeRequested?(eS(e),tH(e._controlledReadableByteStream)):eh(e)}function ew(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function ek(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;let t=e._pendingPullIntos.peek();ev(e,t)&&(e_(e),ef(e._controlledReadableByteStream,t))}}function ex(e,t){let n=e._pendingPullIntos.peek();ew(e),"closed"===e._controlledReadableByteStream._state?function(e,t){let n=e._controlledReadableByteStream;if(eI(n))for(;eN(n)>0;)ef(n,e_(e))}(e):function(e,t,n){if(ey(0,t,n),n.bytesFilled0){let t=n.byteOffset+n.bytesFilled,i=er(n.buffer,t-r,t);eg(e,i,0,i.byteLength)}n.bytesFilled-=r,ef(e._controlledReadableByteStream,n),ek(e)}(e,t,n),eh(e)}function e_(e){return e._pendingPullIntos.shift()}function eS(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function eE(e){let t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state){if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){let t=TypeError("Insufficient bytes to fill elements in the given buffer");throw eC(e,t),t}eS(e),tH(t)}}}function eD(e,t){let n=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==n._state)return;let r=t.buffer,i=t.byteOffset,o=t.byteLength;if(e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek();t.buffer,t.buffer=t.buffer}(ew(e),W(n))?0===H(n)?eg(e,r,i,o):(e._pendingPullIntos.length>0&&e_(e),$(n,new Uint8Array(r,i,o),!1)):eI(n)?(eg(e,r,i,o),ek(e)):eg(e,r,i,o),eh(e)}function eC(e,t){let n=e._controlledReadableByteStream;"readable"===n._state&&(ep(e),es(e),eS(e),tW(n,t))}function ej(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){let t=e._pendingPullIntos.peek(),n=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),r=Object.create(eu.prototype);r._associatedReadableByteStreamController=e,r._view=n,e._byobRequest=r}return e._byobRequest}function eO(e){let t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function eT(e,t){let n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(n.bytesFilled+t>n.byteLength)throw RangeError("bytesWritten out of range")}n.buffer=n.buffer,ex(e,t)}function eA(e,t){let n=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(n.byteOffset+n.bytesFilled!==t.byteOffset)throw RangeError("The region specified by view does not match byobRequest");if(n.bufferByteLength!==t.buffer.byteLength)throw RangeError("The buffer of view has different capacity than byobRequest");if(n.bytesFilled+t.byteLength>n.byteLength)throw RangeError("The region specified by view is larger than byobRequest");let r=t.byteLength;n.buffer=t.buffer,ex(e,r)}function eP(e,t,n,r,i,o,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,es(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=r,t._cancelAlgorithm=i,t._autoAllocateChunkSize=a,t._pendingPullIntos=new b,e._readableStreamController=t,p(l(n()),()=>{t._started=!0,eh(t)},e=>{eC(t,e)})}function eR(e){return TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function eM(e){return TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function eF(e,t){e._reader._readIntoRequests.push(t)}function eN(e){return e._reader._readIntoRequests.length}function eI(e){let t=e._reader;return void 0!==t&&!!eB(t)}Object.defineProperties(el.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(el.prototype,r.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class eL{constructor(e){if(N(e,1,"ReadableStreamBYOBReader"),z(e,"First parameter"),tq(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");if(!ec(e._readableStreamController))throw TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");w(this,e),this._readIntoRequests=new b}get closed(){return eB(this)?this._closedPromise:c(eU("closed"))}cancel(e){return eB(this)?void 0===this._ownerReadableStream?c(_("cancel")):k(this,e):c(eU("cancel"))}read(e){let t,n;if(!eB(this))return c(eU("read"));if(!ArrayBuffer.isView(e))return c(TypeError("view must be an array buffer view"));if(0===e.byteLength)return c(TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return c(TypeError("view's buffer must have non-zero byteLength"));if(e.buffer,void 0===this._ownerReadableStream)return c(_("read from"));let r=d((e,r)=>{t=e,n=r});return ez(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>n(e)}),r}releaseLock(){if(!eB(this))throw eU("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");x(this)}}}function eB(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof eL}function ez(e,t,n){let r=e._ownerReadableStream;r._disturbed=!0,"errored"===r._state?n._errorSteps(r._storedError):function(e,t,n){let r=e._controlledReadableByteStream,i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);let o=t.constructor,a=t.buffer,s={buffer:a,bufferByteLength:a.byteLength,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,viewConstructor:o,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),void eF(r,n);if("closed"!==r._state){if(e._queueTotalSize>0){if(ev(e,s)){let t=em(s);return eb(e),void n._chunkSteps(t)}if(e._closeRequested){let t=TypeError("Insufficient bytes to fill elements in the given buffer");return eC(e,t),void n._errorSteps(t)}}e._pendingPullIntos.push(s),eF(r,n),eh(e)}else{let e=new o(s.buffer,s.byteOffset,0);n._closeSteps(e)}}(r._readableStreamController,t,n)}function eU(e){return TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function eq(e,t){let{highWaterMark:n}=e;if(void 0===n)return t;if(ee(n)||n<0)throw RangeError("Invalid highWaterMark");return n}function e$(e){let{size:t}=e;return t||(()=>1)}function eH(e,t){R(e,t);let n=null==e?void 0:e.highWaterMark,r=null==e?void 0:e.size;return{highWaterMark:void 0===n?void 0:L(n),size:void 0===r?void 0:(M(r,`${t} has member 'size' that`),e=>L(r(e)))}}function eW(e,t){if(!eZ(e))throw TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(eL.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(eL.prototype,r.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});let eV="function"==typeof AbortController;class eG{constructor(e={},t={}){void 0===e?e=null:F(e,"First parameter");let n=eH(t,"Second parameter"),r=function(e,t){R(e,t);let n=null==e?void 0:e.abort,r=null==e?void 0:e.close,i=null==e?void 0:e.start,o=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===n?void 0:(M(n,`${t} has member 'abort' that`),t=>y(n,e,[t])),close:void 0===r?void 0:(M(r,`${t} has member 'close' that`),()=>y(r,e,[])),start:void 0===i?void 0:(M(i,`${t} has member 'start' that`),t=>v(i,e,[t])),write:void 0===a?void 0:(M(a,`${t} has member 'write' that`),(t,n)=>y(a,e,[t,n])),type:o}}(e,"First parameter");if(eY(this),void 0!==r.type)throw RangeError("Invalid type is specified");let i=e$(n);!function(e,t,n,r){let i=Object.create(tn.prototype),o=()=>{},a=()=>l(void 0),s=()=>l(void 0),u=()=>l(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.write&&(a=e=>t.write(e,i)),void 0!==t.close&&(s=()=>t.close()),void 0!==t.abort&&(u=e=>t.abort(e)),ti(e,i,o,a,s,u,n,r)}(this,r,eq(n,1),i)}get locked(){if(!eZ(this))throw tc("locked");return eK(this)}abort(e){return eZ(this)?eK(this)?c(TypeError("Cannot abort a stream that already has a writer")):eJ(this,e):c(tc("abort"))}close(){return eZ(this)?eK(this)?c(TypeError("Cannot close a stream that already has a writer")):e2(this)?c(TypeError("Cannot close an already-closing stream")):eX(this):c(tc("close"))}getWriter(){if(!eZ(this))throw tc("getWriter");return new e4(this)}}function eY(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new b,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function eZ(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof eG}function eK(e){return void 0!==e._writer}function eJ(e,t){var n;if("closed"===e._state||"errored"===e._state)return l(void 0);e._writableStreamController._abortReason=t,null===(n=e._writableStreamController._abortController)||void 0===n||n.abort();let r=e._state;if("closed"===r||"errored"===r)return l(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let i=!1;"erroring"===r&&(i=!0,t=void 0);let o=d((n,r)=>{e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:r,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=o,i||e0(e,t),o}function eX(e){var t;let n=e._state;if("closed"===n||"errored"===n)return c(TypeError(`The stream (in ${n} state) is not in the writable state and cannot be closed`));let r=d((t,n)=>{e._closeRequest={_resolve:t,_reject:n}}),i=e._writer;return void 0!==i&&e._backpressure&&"writable"===n&&tw(i),ea(t=e._writableStreamController,tt,0),ts(t),r}function eQ(e,t){"writable"!==e._state?e1(e):e0(e,t)}function e0(e,t){let n=e._writableStreamController;e._state="erroring",e._storedError=t;let r=e._writer;void 0!==r&&e9(r,t),!(void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest)&&n._started&&e1(e)}function e1(e){e._state="errored",e._writableStreamController[j]();let t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new b,void 0===e._pendingAbortRequest)return void e3(e);let n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,n._wasAlreadyErroring)return n._reject(t),void e3(e);p(e._writableStreamController[C](n._reason),()=>{n._resolve(),e3(e)},t=>{n._reject(t),e3(e)})}function e2(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function e3(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);let t=e._writer;void 0!==t&&tm(t,e._storedError)}function e5(e,t){let n=e._writer;void 0!==n&&t!==e._backpressure&&(t?tv(n):tw(n)),e._backpressure=t}Object.defineProperties(eG.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(eG.prototype,r.toStringTag,{value:"WritableStream",configurable:!0});class e4{constructor(e){if(N(e,1,"WritableStreamDefaultWriter"),eW(e,"First parameter"),eK(e))throw TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;let t=e._state;if("writable"===t)!e2(e)&&e._backpressure?tv(this):(tv(this),tw(this)),tf(this);else if("erroring"===t)ty(this,e._storedError),tf(this);else if("closed"===t)tv(this),tw(this),tf(this),tg(this);else{let t=e._storedError;ty(this,t),tf(this),tm(this,t)}}get closed(){return e6(this)?this._closedPromise:c(th("closed"))}get desiredSize(){if(!e6(this))throw th("desiredSize");if(void 0===this._ownerWritableStream)throw tp("desiredSize");return function(e){let t=e._ownerWritableStream,n=t._state;return"errored"===n||"erroring"===n?null:"closed"===n?0:ta(t._writableStreamController)}(this)}get ready(){return e6(this)?this._readyPromise:c(th("ready"))}abort(e){return e6(this)?void 0===this._ownerWritableStream?c(tp("abort")):eJ(this._ownerWritableStream,e):c(th("abort"))}close(){if(!e6(this))return c(th("close"));let e=this._ownerWritableStream;return void 0===e?c(tp("close")):e2(e)?c(TypeError("Cannot close an already-closing stream")):e8(this)}releaseLock(){if(!e6(this))throw th("releaseLock");void 0!==this._ownerWritableStream&&e7(this)}write(e){return e6(this)?void 0===this._ownerWritableStream?c(tp("write to")):te(this,e):c(th("write"))}}function e6(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof e4}function e8(e){return eX(e._ownerWritableStream)}function e9(e,t){"pending"===e._readyPromiseState?tb(e,t):ty(e,t)}function e7(e){let t=e._ownerWritableStream,n=TypeError("Writer was released and can no longer be used to monitor the stream's closedness");e9(e,n),"pending"===e._closedPromiseState||tf(e),tm(e,n),t._writer=void 0,e._ownerWritableStream=void 0}function te(e,t){let n=e._ownerWritableStream,r=n._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return tu(e,t),1}}(r,t);if(n!==e._ownerWritableStream)return c(tp("write to"));let o=n._state;if("errored"===o)return c(n._storedError);if(e2(n)||"closed"===o)return c(TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return c(n._storedError);let a=d((e,t)=>{n._writeRequests.push({_resolve:e,_reject:t})});return function(e,t,n){try{ea(e,t,n)}catch(t){return void tu(e,t)}let r=e._controlledWritableStream;e2(r)||"writable"!==r._state||e5(r,0>=ta(e)),ts(e)}(r,t,i),a}Object.defineProperties(e4.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(e4.prototype,r.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});let tt={};class tn{constructor(){throw TypeError("Illegal constructor")}get abortReason(){if(!tr(this))throw td("abortReason");return this._abortReason}get signal(){if(!tr(this))throw td("signal");if(void 0===this._abortController)throw TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e){if(!tr(this))throw td("error");"writable"===this._controlledWritableStream._state&&tl(this,e)}[C](e){let t=this._abortAlgorithm(e);return to(this),t}[j](){es(this)}}function tr(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof tn}function ti(e,t,n,r,i,o,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,es(t),t._abortReason=void 0,t._abortController=function(){if(eV)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=r,t._closeAlgorithm=i,t._abortAlgorithm=o,e5(e,0>=ta(t)),p(l(n()),()=>{t._started=!0,ts(t)},n=>{t._started=!0,eQ(e,n)})}function to(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function ta(e){return e._strategyHWM-e._queueTotalSize}function ts(e){let t=e._controlledWritableStream;if(!e._started||void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void e1(t);if(0===e._queue.length)return;let n=e._queue.peek().value;n===tt?function(e){let t=e._controlledWritableStream;t._inFlightCloseRequest=t._closeRequest,t._closeRequest=void 0,eo(e);let n=e._closeAlgorithm();to(e),p(n,()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";let t=e._writer;void 0!==t&&tg(t)}(t)},e=>{t._inFlightCloseRequest._reject(e),t._inFlightCloseRequest=void 0,void 0!==t._pendingAbortRequest&&(t._pendingAbortRequest._reject(e),t._pendingAbortRequest=void 0),eQ(t,e)})}(e):function(e,t){let n=e._controlledWritableStream;n._inFlightWriteRequest=n._writeRequests.shift(),p(e._writeAlgorithm(t),()=>{n._inFlightWriteRequest._resolve(void 0),n._inFlightWriteRequest=void 0;let t=n._state;eo(e),e2(n)||"writable"!==t||e5(n,0>=ta(e)),ts(e)},t=>{"writable"===n._state&&to(e),n._inFlightWriteRequest._reject(t),n._inFlightWriteRequest=void 0,eQ(n,t)})}(e,n)}function tu(e,t){"writable"===e._controlledWritableStream._state&&tl(e,t)}function tl(e,t){let n=e._controlledWritableStream;to(e),e0(n,t)}function tc(e){return TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function td(e){return TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function th(e){return TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function tp(e){return TypeError("Cannot "+e+" a stream using a released writer")}function tf(e){e._closedPromise=d((t,n)=>{e._closedPromise_resolve=t,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function tm(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function tg(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function tv(e){e._readyPromise=d((t,n)=>{e._readyPromise_resolve=t,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function ty(e,t){tv(e),tb(e,t)}function tb(e,t){void 0!==e._readyPromise_reject&&(m(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function tw(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(tn.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tn.prototype,r.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});let tk="undefined"!=typeof DOMException?DOMException:void 0,tx=!function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(tk)?function(){let e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}():tk;function t_(e,t,n,r,o,a){let s=U(e),u=new e4(t);e._disturbed=!0;let g=!1,v=l(void 0);return d((y,b)=>{var w,k;let _;if(void 0!==a){if(_=()=>{let n=new tx("Aborted","AbortError"),i=[];r||i.push(()=>"writable"===t._state?eJ(t,n):l(void 0)),o||i.push(()=>"readable"===e._state?t$(e,n):l(void 0)),D(()=>Promise.all(i.map(e=>e())),!0,n)},a.aborted)return void _();a.addEventListener("abort",_)}if(E(e,s._closedPromise,e=>{r?C(!0,e):D(()=>eJ(t,e),!0,e)}),E(t,u._closedPromise,t=>{o?C(!0,t):D(()=>t$(e,t),!0,t)}),w=s._closedPromise,k=()=>{n?C():D(()=>(function(e){let t=e._ownerWritableStream,n=t._state;return e2(t)||"closed"===n?l(void 0):"errored"===n?c(t._storedError):e8(e)})(u))},"closed"===e._state?k():p(w,k),e2(t)||"closed"===t._state){let t=TypeError("the destination writable stream closed before all data could be piped to it");o?C(!0,t):D(()=>t$(e,t),!0,t)}function S(){let e=v;return h(v,()=>e!==v?S():void 0)}function E(e,t,n){"errored"===e._state?n(e._storedError):f(t,n)}function D(e,n,r){function i(){p(e(),()=>j(n,r),e=>j(!0,e))}g||(g=!0,"writable"!==t._state||e2(t)?i():p(S(),i))}function C(e,n){g||(g=!0,"writable"!==t._state||e2(t)?j(e,n):p(S(),()=>j(e,n)))}function j(e,t){e7(u),x(s),void 0!==a&&a.removeEventListener("abort",_),e?b(t):y(void 0)}m(d((e,t)=>{!function n(r){r?e():h(g?l(!0):h(u._readyPromise,()=>d((e,t)=>{Y(s,{_chunkSteps:t=>{v=h(te(u,t),void 0,i),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})),n,t)}(!1)}))})}class tS{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!tE(this))throw tF("desiredSize");return tP(this)}close(){if(!tE(this))throw tF("close");if(!tR(this))throw TypeError("The stream is not in a state that permits close");tO(this)}enqueue(e){if(!tE(this))throw tF("enqueue");if(!tR(this))throw TypeError("The stream is not in a state that permits enqueue");return tT(this,e)}error(e){if(!tE(this))throw tF("error");tA(this,e)}[O](e){es(this);let t=this._cancelAlgorithm(e);return tj(this),t}[T](e){let t=this._controlledReadableStream;if(this._queue.length>0){let n=eo(this);this._closeRequested&&0===this._queue.length?(tj(this),tH(t)):tD(this),e._chunkSteps(n)}else q(t,e),tD(this)}}function tE(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof tS}function tD(e){if(tC(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,p(e._pullAlgorithm(),()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,tD(e))},t=>{tA(e,t)})}}function tC(e){let t=e._controlledReadableStream;return!!tR(e)&&!!e._started&&(!!(tq(t)&&H(t)>0)||tP(e)>0)}function tj(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function tO(e){if(!tR(e))return;let t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(tj(e),tH(t))}function tT(e,t){if(!tR(e))return;let n=e._controlledReadableStream;if(tq(n)&&H(n)>0)$(n,t,!1);else{let n;try{n=e._strategySizeAlgorithm(t)}catch(t){throw tA(e,t),t}try{ea(e,t,n)}catch(t){throw tA(e,t),t}}tD(e)}function tA(e,t){let n=e._controlledReadableStream;"readable"===n._state&&(es(e),tj(e),tW(n,t))}function tP(e){let t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function tR(e){let t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function tM(e,t,n,r,i,o,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,es(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=o,t._pullAlgorithm=r,t._cancelAlgorithm=i,e._readableStreamController=t,p(l(n()),()=>{t._started=!0,tD(t)},e=>{tA(t,e)})}function tF(e){return TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function tN(e,t){R(e,t);let n=null==e?void 0:e.preventAbort,r=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw TypeError(`${t} is not an AbortSignal.`)}(o,`${t} has member 'signal' that`),{preventAbort:!!n,preventCancel:!!r,preventClose:!!i,signal:o}}Object.defineProperties(tS.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tS.prototype,r.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class tI{constructor(e={},t={}){void 0===e?e=null:F(e,"First parameter");let n=eH(t,"Second parameter"),r=function(e,t){R(e,t);let n=null==e?void 0:e.autoAllocateChunkSize,r=null==e?void 0:e.cancel,i=null==e?void 0:e.pull,o=null==e?void 0:e.start,a=null==e?void 0:e.type;return{autoAllocateChunkSize:void 0===n?void 0:B(n,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===r?void 0:(M(r,`${t} has member 'cancel' that`),t=>y(r,e,[t])),pull:void 0===i?void 0:(M(i,`${t} has member 'pull' that`),t=>y(i,e,[t])),start:void 0===o?void 0:(M(o,`${t} has member 'start' that`),t=>v(o,e,[t])),type:void 0===a?void 0:function(e,t){if("bytes"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}(a,`${t} has member 'type' that`)}}(e,"First parameter");if(tz(this),"bytes"===r.type){if(void 0!==n.size)throw RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,n){let r=Object.create(el.prototype),i=()=>{},o=()=>l(void 0),a=()=>l(void 0);void 0!==t.start&&(i=()=>t.start(r)),void 0!==t.pull&&(o=()=>t.pull(r)),void 0!==t.cancel&&(a=e=>t.cancel(e));let s=t.autoAllocateChunkSize;if(0===s)throw TypeError("autoAllocateChunkSize must be greater than 0");eP(e,r,i,o,a,n,s)}(this,r,eq(n,0))}else{let e=e$(n);!function(e,t,n,r){let i=Object.create(tS.prototype),o=()=>{},a=()=>l(void 0),s=()=>l(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.pull&&(a=()=>t.pull(i)),void 0!==t.cancel&&(s=e=>t.cancel(e)),tM(e,i,o,a,s,n,r)}(this,r,eq(n,1),e)}}get locked(){if(!tU(this))throw tV("locked");return tq(this)}cancel(e){return tU(this)?tq(this)?c(TypeError("Cannot cancel a stream that already has a reader")):t$(this,e):c(tV("cancel"))}getReader(e){if(!tU(this))throw tV("getReader");return void 0===function(e,t){R(e,t);let n=null==e?void 0:e.mode;return{mode:void 0===n?void 0:function(e,t){if("byob"!=(e=`${e}`))throw TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}(n,`${t} has member 'mode' that`)}}(e,"First parameter").mode?U(this):new eL(this)}pipeThrough(e,t={}){if(!tU(this))throw tV("pipeThrough");N(e,1,"pipeThrough");let n=function(e,t){R(e,t);let n=null==e?void 0:e.readable;I(n,"readable","ReadableWritablePair"),z(n,`${t} has member 'readable' that`);let r=null==e?void 0:e.writable;return I(r,"writable","ReadableWritablePair"),eW(r,`${t} has member 'writable' that`),{readable:n,writable:r}}(e,"First parameter"),r=tN(t,"Second parameter");if(tq(this))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(eK(n.writable))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return m(t_(this,n.writable,r.preventClose,r.preventAbort,r.preventCancel,r.signal)),n.readable}pipeTo(e,t={}){let n;if(!tU(this))return c(tV("pipeTo"));if(void 0===e)return c("Parameter 1 is required in 'pipeTo'.");if(!eZ(e))return c(TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));try{n=tN(t,"Second parameter")}catch(e){return c(e)}return tq(this)?c(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):eK(e)?c(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):t_(this,e,n.preventClose,n.preventAbort,n.preventCancel,n.signal)}tee(){if(!tU(this))throw tV("tee");return et(ec(this._readableStreamController)?function(e){let t,n,r,i,o,a=U(e),s=!1,u=!1,c=!1,h=!1,p=!1,m=d(e=>{o=e});function v(e){f(e._closedPromise,t=>{e===a&&(eC(r._readableStreamController,t),eC(i._readableStreamController,t),h&&p||o(void 0))})}function y(){eB(a)&&(x(a),v(a=U(e))),Y(a,{_chunkSteps:t=>{g(()=>{u=!1,c=!1;let n=t;if(!h&&!p)try{n=ei(t)}catch(t){return eC(r._readableStreamController,t),eC(i._readableStreamController,t),void o(t$(e,t))}h||eD(r._readableStreamController,t),p||eD(i._readableStreamController,n),s=!1,u?w():c&&k()})},_closeSteps:()=>{s=!1,h||eE(r._readableStreamController),p||eE(i._readableStreamController),r._readableStreamController._pendingPullIntos.length>0&&eT(r._readableStreamController,0),i._readableStreamController._pendingPullIntos.length>0&&eT(i._readableStreamController,0),h&&p||o(void 0)},_errorSteps:()=>{s=!1}})}function b(t,n){G(a)&&(x(a),v(a=new eL(e)));let l=n?i:r,d=n?r:i;ez(a,t,{_chunkSteps:t=>{g(()=>{u=!1,c=!1;let r=n?p:h;if(n?h:p)r||eA(l._readableStreamController,t);else{let n;try{n=ei(t)}catch(t){return eC(l._readableStreamController,t),eC(d._readableStreamController,t),void o(t$(e,t))}r||eA(l._readableStreamController,t),eD(d._readableStreamController,n)}s=!1,u?w():c&&k()})},_closeSteps:e=>{s=!1;let t=n?p:h,r=n?h:p;t||eE(l._readableStreamController),r||eE(d._readableStreamController),void 0!==e&&(t||eA(l._readableStreamController,e),!r&&d._readableStreamController._pendingPullIntos.length>0&&eT(d._readableStreamController,0)),t&&r||o(void 0)},_errorSteps:()=>{s=!1}})}function w(){if(s)return u=!0,l(void 0);s=!0;let e=ej(r._readableStreamController);return null===e?y():b(e._view,!1),l(void 0)}function k(){if(s)return c=!0,l(void 0);s=!0;let e=ej(i._readableStreamController);return null===e?y():b(e._view,!0),l(void 0)}function _(){}return r=tB(_,w,function(r){if(h=!0,t=r,p){let r=t$(e,et([t,n]));o(r)}return m}),i=tB(_,k,function(r){if(p=!0,n=r,h){let r=t$(e,et([t,n]));o(r)}return m}),v(a),[r,i]}(this):function(e,t){let n=U(e),r,i,o,a,s,u=!1,c=!1,h=!1,p=!1,m=d(e=>{s=e});function v(){return u?c=!0:(u=!0,Y(n,{_chunkSteps:e=>{g(()=>{c=!1,h||tT(o._readableStreamController,e),p||tT(a._readableStreamController,e),u=!1,c&&v()})},_closeSteps:()=>{u=!1,h||tO(o._readableStreamController),p||tO(a._readableStreamController),h&&p||s(void 0)},_errorSteps:()=>{u=!1}})),l(void 0)}function y(){}return o=tL(y,v,function(t){if(h=!0,r=t,p){let t=t$(e,et([r,i]));s(t)}return m}),a=tL(y,v,function(t){if(p=!0,i=t,h){let t=t$(e,et([r,i]));s(t)}return m}),f(n._closedPromise,e=>{tA(o._readableStreamController,e),tA(a._readableStreamController,e),h&&p||s(void 0)}),[o,a]}(this))}values(e){if(!tU(this))throw tV("values");return function(e,t){let n=new K(U(e),t),r=Object.create(J);return r._asyncIteratorImpl=n,r}(this,(R(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}).preventCancel)}}function tL(e,t,n,r=1,i=()=>1){let o=Object.create(tI.prototype);return tz(o),tM(o,Object.create(tS.prototype),e,t,n,r,i),o}function tB(e,t,n){let r=Object.create(tI.prototype);return tz(r),eP(r,Object.create(el.prototype),e,t,n,0,void 0),r}function tz(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function tU(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof tI}function tq(e){return void 0!==e._reader}function t$(e,t){if(e._disturbed=!0,"closed"===e._state)return l(void 0);if("errored"===e._state)return c(e._storedError);tH(e);let n=e._reader;return void 0!==n&&eB(n)&&(n._readIntoRequests.forEach(e=>{e._closeSteps(void 0)}),n._readIntoRequests=new b),h(e._readableStreamController[O](t),i,void 0)}function tH(e){e._state="closed";let t=e._reader;void 0!==t&&(D(t),G(t)&&(t._readRequests.forEach(e=>{e._closeSteps()}),t._readRequests=new b))}function tW(e,t){e._state="errored",e._storedError=t;let n=e._reader;void 0!==n&&(E(n,t),G(n)?(n._readRequests.forEach(e=>{e._errorSteps(t)}),n._readRequests=new b):(n._readIntoRequests.forEach(e=>{e._errorSteps(t)}),n._readIntoRequests=new b))}function tV(e){return TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function tG(e,t){R(e,t);let n=null==e?void 0:e.highWaterMark;return I(n,"highWaterMark","QueuingStrategyInit"),{highWaterMark:L(n)}}Object.defineProperties(tI.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tI.prototype,r.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof r.asyncIterator&&Object.defineProperty(tI.prototype,r.asyncIterator,{value:tI.prototype.values,writable:!0,configurable:!0});let tY=e=>e.byteLength;try{Object.defineProperty(tY,"name",{value:"size",configurable:!0})}catch(e){}class tZ{constructor(e){N(e,1,"ByteLengthQueuingStrategy"),e=tG(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!tJ(this))throw tK("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!tJ(this))throw tK("size");return tY}}function tK(e){return TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function tJ(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof tZ}Object.defineProperties(tZ.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tZ.prototype,r.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});let tX=()=>1;try{Object.defineProperty(tX,"name",{value:"size",configurable:!0})}catch(e){}class tQ{constructor(e){N(e,1,"CountQueuingStrategy"),e=tG(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!t1(this))throw t0("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!t1(this))throw t0("size");return tX}}function t0(e){return TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function t1(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof tQ}Object.defineProperties(tQ.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(tQ.prototype,r.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class t2{constructor(e={},t={},n={}){let r;void 0===e&&(e=null);let i=eH(t,"Second parameter"),o=eH(n,"Third parameter"),a=function(e,t){R(e,t);let n=null==e?void 0:e.flush,r=null==e?void 0:e.readableType,i=null==e?void 0:e.start,o=null==e?void 0:e.transform,a=null==e?void 0:e.writableType;return{flush:void 0===n?void 0:(M(n,`${t} has member 'flush' that`),t=>y(n,e,[t])),readableType:r,start:void 0===i?void 0:(M(i,`${t} has member 'start' that`),t=>v(i,e,[t])),transform:void 0===o?void 0:(M(o,`${t} has member 'transform' that`),(t,n)=>y(o,e,[t,n])),writableType:a}}(e,"First parameter");if(void 0!==a.readableType)throw RangeError("Invalid readableType specified");if(void 0!==a.writableType)throw RangeError("Invalid writableType specified");let s=eq(o,0),u=e$(o),p=eq(i,1),f=e$(i);(function(e,t,n,r,i,o){function a(){return t}e._writable=function(e,t,n,r,i=1,o=()=>1){let a=Object.create(eG.prototype);return eY(a),ti(a,Object.create(tn.prototype),e,t,n,r,i,o),a}(a,function(t){return function(e,t){let n=e._transformStreamController;return e._backpressure?h(e._backpressureChangePromise,()=>{let r=e._writable;if("erroring"===r._state)throw r._storedError;return nt(n,t)},void 0):nt(n,t)}(e,t)},function(){return function(e){let t=e._readable,n=e._transformStreamController,r=n._flushAlgorithm();return t7(n),h(r,()=>{if("errored"===t._state)throw t._storedError;tO(t._readableStreamController)},n=>{throw t5(e,n),t._storedError})}(e)},function(t){return t5(e,t),l(void 0)},n,r),e._readable=tL(a,function(){return t6(e,!1),e._backpressureChangePromise},function(t){return t4(e,t),l(void 0)},i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,t6(e,!0),e._transformStreamController=void 0})(this,d(e=>{r=e}),p,f,s,u),function(e,t){var n,r;let i=Object.create(t8.prototype),o=e=>{try{var t;return ne(i,e),t=void 0,l(t)}catch(e){return c(e)}},a=()=>l(void 0);void 0!==t.transform&&(o=e=>t.transform(e,i)),void 0!==t.flush&&(a=()=>t.flush(i)),n=o,r=a,i._controlledTransformStream=e,e._transformStreamController=i,i._transformAlgorithm=n,i._flushAlgorithm=r}(this,a),void 0!==a.start?r(a.start(this._transformStreamController)):r(void 0)}get readable(){if(!t3(this))throw nr("readable");return this._readable}get writable(){if(!t3(this))throw nr("writable");return this._writable}}function t3(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof t2}function t5(e,t){tA(e._readable._readableStreamController,t),t4(e,t)}function t4(e,t){t7(e._transformStreamController),tu(e._writable._writableStreamController,t),e._backpressure&&t6(e,!1)}function t6(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=d(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(t2.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(t2.prototype,r.toStringTag,{value:"TransformStream",configurable:!0});class t8{constructor(){throw TypeError("Illegal constructor")}get desiredSize(){if(!t9(this))throw nn("desiredSize");return tP(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!t9(this))throw nn("enqueue");ne(this,e)}error(e){if(!t9(this))throw nn("error");t5(this._controlledTransformStream,e)}terminate(){if(!t9(this))throw nn("terminate");!function(e){let t=e._controlledTransformStream;tO(t._readable._readableStreamController),t4(t,TypeError("TransformStream terminated"))}(this)}}function t9(e){return!!a(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof t8}function t7(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function ne(e,t){let n=e._controlledTransformStream,r=n._readable._readableStreamController;if(!tR(r))throw TypeError("Readable side is not in a state that permits enqueue");try{tT(r,t)}catch(e){throw t4(n,e),n._readable._storedError}!tC(r)!==n._backpressure&&t6(n,!0)}function nt(e,t){return h(e._transformAlgorithm(t),void 0,t=>{throw t5(e._controlledTransformStream,t),t})}function nn(e){return TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function nr(e){return TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(t8.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof r.toStringTag&&Object.defineProperty(t8.prototype,r.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});let ni={ReadableStream:tI,ReadableStreamDefaultController:tS,ReadableByteStreamController:el,ReadableStreamBYOBRequest:eu,ReadableStreamDefaultReader:V,ReadableStreamBYOBReader:eL,WritableStream:eG,WritableStreamDefaultController:tn,WritableStreamDefaultWriter:e4,ByteLengthQueuingStrategy:tZ,CountQueuingStrategy:tQ,TransformStream:t2,TransformStreamDefaultController:t8};if(void 0!==o)for(let e in ni)Object.prototype.hasOwnProperty.call(ni,e)&&Object.defineProperty(o,e,{value:ni[e],writable:!0,configurable:!0});e.ByteLengthQueuingStrategy=tZ,e.CountQueuingStrategy=tQ,e.ReadableByteStreamController=el,e.ReadableStream=tI,e.ReadableStreamBYOBReader=eL,e.ReadableStreamBYOBRequest=eu,e.ReadableStreamDefaultController=tS,e.ReadableStreamDefaultReader=V,e.TransformStream=t2,e.TransformStreamDefaultController=t8,e.WritableStream=eG,e.WritableStreamDefaultController=tn,e.WritableStreamDefaultWriter=e4,Object.defineProperty(e,"__esModule",{value:!0})}(t)},78477:function(e){"use strict";function t(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}t.prototype.match=function(e){var t,n,r=!0,i=this.parts,o=i.length;if("string"==typeof e||e instanceof String){if(this.hasWild||this.text==e){for(t=0,n=(e||"").split(this.separator);r&&tvoid 0!==e.method&&"call"===e.method,s=e=>null===e.error&&"number"==typeof e.id,u=null,l=(r=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(a(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if(void 0!==e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if(void 0!==e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(s(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,o.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,o.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,o.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,o.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},i='(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(({data:i})=>{try{if("clear"===i.method){const{id:r,params:{timerId:o,timerType:s}}=i;if("interval"===s)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==s)throw new Error(\'The given type "\'.concat(s,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==i.method)throw new Error(\'The given method "\'.concat(i.method,\'" is not supported\'));{const{params:{delay:s,now:n,timerId:a,timerType:d}}=i;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(s,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(s,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:i.id,result:null})}}))})();',()=>{if(null!==u)return u;let e=new Blob([i],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return(u=r(t)).setTimeout(()=>URL.revokeObjectURL(t),0),u}),c=e=>l().clearInterval(e),d=(e,t)=>l().setInterval(e,t)},45526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(25420))},36990:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(34331))},14808:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(1109))},2370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(151))},66191:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(22765))},45248:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(61563))},55165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){Object.keys(e).filter(e=>"default"!==e&&"__esModule"!==e).forEach(n=>{t.hasOwnProperty(n)||Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n]})})}(n(27743))},80909:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t){this.operator=e,this.value=t,Object.defineProperty(this,"t",{writable:!0})}get notes(){return this.t}addNote(e){this.t=this.t||[],this.t.push(e)}}class r extends n{}class i extends r{constructor(e,t){if(!Array.isArray(t))throw Error(`"${e}" operator expects to receive an array of conditions`);super(e,t)}}class o extends n{constructor(e,t,n){super(e,n),this.field=t}}let a=new r("__null__",null),s=Object.prototype.hasOwnProperty.call.bind(Object.prototype.hasOwnProperty);function u(e,t){return t instanceof i&&t.operator===e}function l(e,t){return 1===t.length?t[0]:new i(e,function e(t,n,r){let i=r||[];for(let r=0,o=n.length;re,d=()=>Object.create(null),h=Object.defineProperty(d(),"__@type@__",{value:"ignore value"});function p(e,t,n=!1){if(!e||e&&e.constructor!==Object)return!1;for(let r in e)if(s(e,r)&&s(t,r)&&(!n||e[r]!==h))return!0;return!1}function f(e){let t=[];for(let n in e)s(e,n)&&e[n]!==h&&t.push(n);return t}function m(e,t){t!==a&&e.push(t)}let g=e=>l("and",e),v={compound(e,t,n){let r=(Array.isArray(t)?t:[t]).map(e=>n.parse(e));return new i(e.name,r)},field:(e,t,n)=>new o(e.name,n.field,t),document:(e,t)=>new r(e.name,t)};class y{constructor(e,t=d()){this.o=void 0,this.s=void 0,this.i=void 0,this.u=void 0,this.h=void 0,this.parse=this.parse.bind(this),this.u={operatorToConditionName:t.operatorToConditionName||c,defaultOperatorName:t.defaultOperatorName||"eq",mergeFinalConditions:t.mergeFinalConditions||g},this.o=Object.keys(e).reduce((t,n)=>(t[n]=Object.assign({name:this.u.operatorToConditionName(n)},e[n]),t),{}),this.s=Object.assign({},t.fieldContext,{field:"",query:{},parse:this.parse,hasOperators:e=>p(e,this.o,t.useIgnoreValue)}),this.i=Object.assign({},t.documentContext,{parse:this.parse,query:{}}),this.h=t.useIgnoreValue?f:Object.keys}setParse(e){this.parse=e,this.s.parse=e,this.i.parse=e}parseField(e,t,n,r){let i=this.o[t];if(!i)throw Error(`Unsupported operator "${t}"`);if("field"!==i.type)throw Error(`Unexpected ${i.type} operator "${t}" at field level`);return this.s.field=e,this.s.query=r,this.parseInstruction(i,n,this.s)}parseInstruction(e,t,n){return"function"==typeof e.validate&&e.validate(e,t),(e.parse||v[e.type])(e,t,n)}parseFieldOperators(e,t){let n=[],r=this.h(t);for(let i=0,o=r.length;il("or",e),t.createInterpreter=function(e,t){let n;let r=t&&t.getInterpreterName||w;switch(t?t.numberOfArguments:0){case 1:n=n=>b(e,r(n,t))(n,i);break;case 3:n=(n,o,a)=>b(e,r(n,t))(n,o,a,i);break;default:n=(n,o)=>b(e,r(n,t))(n,o,i)}let i=Object.assign({},t,{interpret:n});return i.interpret},t.createTranslatorFactory=function(e,t){return(n,...r)=>{let i=e(n,...r),o=t.bind(null,i);return o.ast=i,o}},t.defaultInstructionParsers=v,t.hasOperators=p,t.identity=c,t.ignoreValue=h,t.isCompound=u,t.object=d,t.optimizedCompoundCondition=l,t.parseInstruction=k},46401:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80909);function i(e,t,n){for(let r=0,i=e.length;r{let i=r.get(n,t.field);return Array.isArray(i)?i.some(n=>e(t,n,r)):e(t,i,r)}}let u=(e,t)=>e[t];function l(e,t,n){let r=t.lastIndexOf(".");return -1===r?[e,t]:[n(e,t.slice(0,r)),t.slice(r+1)]}function c(e,t,n=u){if(t===r.ITSELF)return e;if(!e)throw Error(`Unable to get field "${t}" out of ${String(e)}.`);return function(e,t,n){if(-1===t.indexOf("."))return a(e,t,n);let r=t.split("."),i=e;for(let e=0,t=r.length;et?1:-1}function h(e,t={}){return r.createInterpreter(e,Object.assign({get:c,compare:d},t))}let p=(e,t,{interpret:n})=>e.value.some(e=>n(e,t)),f=(e,t,n)=>!p(e,t,n),m=(e,t,{interpret:n})=>e.value.every(e=>n(e,t)),g=(e,t,{interpret:n})=>!n(e.value[0],t),v=(e,t,{compare:n,get:r})=>{let o=r(t,e.field);return Array.isArray(o)&&!Array.isArray(e.value)?i(o,e.value,n):0===n(o,e.value)},y=(e,t,n)=>!v(e,t,n),b=s((e,t,n)=>{let r=n.compare(t,e.value);return 0===r||-1===r}),w=s((e,t,n)=>-1===n.compare(t,e.value)),k=s((e,t,n)=>1===n.compare(t,e.value)),x=s((e,t,n)=>{let r=n.compare(t,e.value);return 0===r||1===r}),_=(e,t,{get:n})=>{if(e.field===r.ITSELF)return void 0!==t;let[i,a]=l(t,e.field,n),s=t=>!!t&&t.hasOwnProperty(a)===e.value;return o(i,a)?i.some(s):s(i)},S=s((e,t)=>"number"==typeof t&&t%e.value[0]===e.value[1]),E=(e,t,{get:n})=>{let[i,a]=l(t,e.field,n),s=t=>{let r=n(t,a);return Array.isArray(r)&&r.length===e.value};return e.field!==r.ITSELF&&o(i,a)?i.some(s):s(i)},D=s((e,t)=>"string"==typeof t&&e.value.test(t)),C=s((e,t,{compare:n})=>i(e.value,t,n)),j=(e,t,n)=>!C(e,t,n),O=(e,t,{compare:n,get:r})=>{let o=r(t,e.field);return Array.isArray(o)&&e.value.every(e=>i(o,e,n))},T=(e,t,{interpret:n,get:r})=>{let i=r(t,e.field);return Array.isArray(i)&&i.some(t=>n(e.value,t))},A=(e,t)=>e.value.call(t),P=Object.assign({},Object.freeze({__proto__:null,or:p,nor:f,and:m,not:g,eq:v,ne:y,lte:b,lt:w,gt:k,gte:x,exists:_,mod:S,size:E,regex:D,within:C,nin:j,all:O,elemMatch:T,where:A}),{in:C}),R=h(P);t.all=O,t.allInterpreters=P,t.and=m,t.compare=d,t.createGetter=function(e){return(t,n)=>c(t,n,e)},t.createJsInterpreter=h,t.elemMatch=T,t.eq=v,t.exists=_,t.getObjectField=c,t.getObjectFieldCursor=l,t.gt=k,t.gte=x,t.interpret=R,t.lt=w,t.lte=b,t.mod=S,t.ne=y,t.nin=j,t.nor=f,t.not=g,t.or=p,t.regex=D,t.size=E,t.where=A,t.within=C},73503:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80909);function i(e,t){if(!Array.isArray(t))throw Error(`"${e.name}" expects value to be an array`)}function o(e,t){if(i(e,t),!t.length)throw Error(`"${e.name}" expects to have at least one element in array`)}let a=e=>(t,n)=>{if(typeof n!==e)throw Error(`"${t.name}" expects value to be a "${e}"`)},s={type:"compound",validate:o,parse(e,t,{parse:n}){let i=t.map(e=>n(e));return r.optimizedCompoundCondition(e.name,i)}},u={type:"compound",validate:o},l={type:"field",validate(e,t){if(!(t&&(t instanceof RegExp||t.constructor===Object)))throw Error(`"${e.name}" expects to receive either regular expression or object of field operators`)},parse(e,t,n){let i=t instanceof RegExp?new r.FieldCondition("regex",n.field,t):n.parse(t,n);return new r.CompoundCondition(e.name,[i])}},c={type:"field",validate(e,t){if(!t||t.constructor!==Object)throw Error(`"${e.name}" expects to receive an object with nested query or field level operators`)},parse(e,t,{parse:n,field:i,hasOperators:o}){let a=o(t)?n(t,{field:r.ITSELF}):n(t);return new r.FieldCondition(e.name,i,a)}},d={type:"field",validate:a("number")},h={type:"field",validate:i},p={type:"field",validate(e,t){if(!Array.isArray(t)||2!==t.length)throw Error(`"${e.name}" expects an array with 2 numeric elements`)}},f={type:"field",validate:a("boolean")},m={type:"field",validate:function(e,t){if(!("string"==typeof t||"number"==typeof t||t instanceof Date))throw Error(`"${e.name}" expects value to be comparable (i.e., string, number or date)`)}},g={type:"field"},v={type:"field",validate(e,t){if(!(t instanceof RegExp)&&"string"!=typeof t)throw Error(`"${e.name}" expects value to be a regular expression or a string that represents regular expression`)},parse(e,t,n){let i="string"==typeof t?new RegExp(t,n.query.$options||""):t;return new r.FieldCondition(e.name,n.field,i)}},y={type:"field",parse:()=>r.NULL_CONDITION},b={type:"document",validate:a("function")};var w=Object.freeze({__proto__:null,$and:s,$or:s,$nor:u,$not:l,$elemMatch:c,$size:d,$in:h,$nin:h,$all:h,$mod:p,$exists:f,$gte:m,$gt:m,$lt:m,$lte:m,$eq:g,$ne:g,$regex:v,$options:y,$where:b});class k extends r.ObjectQueryParser{constructor(e){super(e,{defaultOperatorName:"$eq",operatorToConditionName:e=>e.slice(1)})}parse(e,t){return t&&t.field?r.buildAnd(this.parseFieldOperators(t.field,e)):super.parse(e)}}Object.defineProperty(t,"defaultParsers",{enumerable:!0,get:function(){return r.defaultInstructionParsers}}),t.$all=h,t.$and=s,t.$elemMatch=c,t.$eq=g,t.$exists=f,t.$gt=m,t.$gte=m,t.$in=h,t.$lt=m,t.$lte=m,t.$mod=p,t.$ne=g,t.$nin=h,t.$nor=u,t.$not=l,t.$options=y,t.$or=s,t.$regex=v,t.$size=d,t.$where=b,t.MongoQueryParser=k,t.allParsingInstructions=w},85645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(80909),i=n(73503),o=n(46401);function a(e){return e instanceof Date?e.getTime():e&&"function"==typeof e.toJSON?e.toJSON():e}let s=(e,t)=>o.compare(a(e),a(t));function u(e,t,n){let a=new i.MongoQueryParser(e),u=o.createJsInterpreter(t,Object.assign({compare:s},n));if(n&&n.forPrimitives){let e={field:r.ITSELF},t=a.parse;a.setParse(n=>t(n,e))}return r.createTranslatorFactory(a.parse,u)}let l=u(i.allParsingInstructions,o.allInterpreters),c=u(["$and","$or"].reduce((e,t)=>(e[t]=Object.assign({},e[t],{type:"field"}),e),Object.assign({},i.allParsingInstructions,{$nor:Object.assign({},i.allParsingInstructions.$nor,{type:"field",parse:i.defaultParsers.compound})})),o.allInterpreters,{forPrimitives:!0});Object.keys(r).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}),Object.keys(i).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}),Object.keys(o).forEach(function(e){"default"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}),t.createFactory=u,t.filter=l,t.guard=l,t.squire=c},92778:function(e){"use strict";function t(e){this.content=e}t.prototype={constructor:t,find:function(e){for(var t=0;t>1}},t.from=function(e){if(e instanceof t)return e;var n=[];if(e)for(var r in e)n.push(r,e[r]);return new t(n)},e.exports=t},25420:function(e,t,n){"use strict";var r=n(61563),i=n(1109),o=n(22765),a=function(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)};function s(e,t){var n=e.selection.$cursor;return n&&(t?t.endOfTextblock("backward",e):!(n.parentOffset>0))?n:null}var u=function(e,t,n){var a=s(e,n);if(!a)return!1;var u=h(a);if(!u){var l=a.blockRange(),d=l&&r.liftTarget(l);return null!=d&&(t&&t(e.tr.lift(l,d).scrollIntoView()),!0)}var p=u.nodeBefore;if(E(e,u,t,-1))return!0;if(0==a.parent.content.size&&(c(p,"end")||o.NodeSelection.isSelectable(p)))for(var f=a.depth;;f--){var m=r.replaceStep(e.doc,a.before(f),a.after(f),i.Slice.empty);if(m&&m.slice.size1)break}return!!p.isAtom&&u.depth==a.depth-1&&(t&&t(e.tr.delete(u.pos-p.nodeSize,u.pos).scrollIntoView()),!0)};function l(e,t,n){for(var a=t.nodeBefore,s=t.pos-1;!a.isTextblock;s--){if(a.type.spec.isolating)return!1;var u=a.lastChild;if(!u)return!1;a=u}for(var l=t.nodeAfter,c=t.pos+1;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;var d=l.firstChild;if(!d)return!1;l=d}var h=r.replaceStep(e.doc,s,c,i.Slice.empty);if(!h||h.from!=s||h instanceof r.ReplaceStep&&h.slice.size>=c-s)return!1;if(n){var p=e.tr.step(h);p.setSelection(o.TextSelection.create(p.doc,s)),n(p.scrollIntoView())}return!0}function c(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)break}return!1}var d=function(e,t,n){var r=e.selection,i=r.$head,a=r.empty,s=i;if(!a)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=h(i)}var u=s&&s.nodeBefore;return!!(u&&o.NodeSelection.isSelectable(u))&&(t&&t(e.tr.setSelection(o.NodeSelection.create(e.doc,s.pos-u.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function p(e,t){var n=e.selection.$cursor;return n&&(t?t.endOfTextblock("forward",e):!(n.parentOffset=0;t--){var n=e.node(t);if(e.index(t)+11&&n.after()!=n.end(-1)){var i=n.before();if(r.canSplit(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var o=n.blockRange(),a=o&&r.liftTarget(o);return null!=a&&(t&&t(e.tr.lift(o,a).scrollIntoView()),!0)};function x(e){return function(t,n){var i=t.selection,a=i.$from,s=i.$to;if(t.selection instanceof o.NodeSelection&&t.selection.node.isBlock)return!!(a.parentOffset&&r.canSplit(t.doc,a.pos))&&(n&&n(t.tr.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(n){var u=s.parentOffset==s.parent.content.size,l=t.tr;(t.selection instanceof o.TextSelection||t.selection instanceof o.AllSelection)&&l.deleteSelection();var c=0==a.depth?null:y(a.node(-1).contentMatchAt(a.indexAfter(-1))),d=e&&e(s.parent,u,a),h=d?[d]:u&&c?[{type:c}]:void 0,p=r.canSplit(l.doc,l.mapping.map(a.pos),1,h);if(!h&&!p&&r.canSplit(l.doc,l.mapping.map(a.pos),1,c?[{type:c}]:void 0)&&(c&&(h=[{type:c}]),p=!0),p&&(l.split(l.mapping.map(a.pos),1,h),!u&&!a.parentOffset&&a.parent.type!=c)){var f=l.mapping.map(a.before()),m=l.doc.resolve(f);c&&a.node(-1).canReplaceWith(m.index(),m.index()+1,c)&&l.setNodeMarkup(l.mapping.map(a.before()),c)}n(l.scrollIntoView())}return!0}}var _=x(),S=function(e,t){return t&&t(e.tr.setSelection(new o.AllSelection(e.doc))),!0};function E(e,t,n,a){var s,u,l,d,h,p=t.nodeBefore,f=t.nodeAfter,m=p.type.spec.isolating||f.type.spec.isolating;if(!m&&(s=t.nodeBefore,u=t.nodeAfter,l=t.index(),s&&u&&s.type.compatibleContent(u.type)&&(!s.content.size&&t.parent.canReplace(l-1,l)?(n&&n(e.tr.delete(t.pos-s.nodeSize,t.pos).scrollIntoView()),!0):!!(t.parent.canReplace(l,l+1)&&(u.isTextblock||r.canJoin(e.doc,t.pos)))&&(n&&n(e.tr.clearIncompatible(t.pos,s.type,s.contentMatchAt(s.childCount)).join(t.pos).scrollIntoView()),!0))))return!0;var g=!m&&t.parent.canReplace(t.index(),t.index()+1);if(g&&(d=(h=p.contentMatchAt(p.childCount)).findWrapping(f.type))&&h.matchType(d[0]||f.type).validEnd){if(n){for(var v=t.pos+f.nodeSize,y=i.Fragment.empty,b=d.length-1;b>=0;b--)y=i.Fragment.from(d[b].create(null,y));y=i.Fragment.from(p.copy(y));var w=e.tr.step(new r.ReplaceAroundStep(t.pos-1,v,t.pos,v,new i.Slice(y,1,0),d.length,!0)),k=v+2*d.length;r.canJoin(w.doc,k)&&w.join(k),n(w.scrollIntoView())}return!0}var x=f.type.spec.isolating||a>0&&m?null:o.Selection.findFrom(t,1),_=x&&x.$from.blockRange(x.$to),S=_&&r.liftTarget(_);if(null!=S&&S>=t.depth)return n&&n(e.tr.lift(_,S).scrollIntoView()),!0;if(g&&c(f,"start",!0)&&c(p,"end")){for(var E=p,D=[];D.push(E),!E.isTextblock;)E=E.lastChild;for(var C=f,j=1;!C.isTextblock;C=C.firstChild)j++;if(E.canReplace(E.childCount,E.childCount,C.content)){if(n){for(var O=i.Fragment.empty,T=D.length-1;T>=0;T--)O=i.Fragment.from(D[T].copy(O));n(e.tr.step(new r.ReplaceAroundStep(t.pos-D.length,t.pos+f.nodeSize,t.pos+j,t.pos+f.nodeSize-j,new i.Slice(O,D.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function D(e){return function(t,n){for(var r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;i.node(a).isInline;){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o.TextSelection.create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}var C=D(-1),j=D(1);function O(){for(var e=arguments.length,t=Array(e),n=0;n-1}:t;return function(t,i,o){return e(t,i&&function(e){if(!e.isGeneric)return i(e);for(var t=[],o=0;o=0;b--)r.canJoin(e.doc,u[b])&&e.join(u[b]);i(e)},o)}},t.baseKeymap=F?R:P,t.chainCommands=O,t.createParagraphNear=w,t.deleteSelection=a,t.exitCode=b,t.joinBackward=u,t.joinDown=function(e,t){var n,i=e.selection;if(i instanceof o.NodeSelection){if(i.node.isTextblock||!r.canJoin(e.doc,i.to))return!1;n=i.to}else if(null==(n=r.joinPoint(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0},t.joinForward=f,t.joinTextblockBackward=function(e,t,n){var r=s(e,n);if(!r)return!1;var i=h(r);return!!i&&l(e,i,t)},t.joinTextblockForward=function(e,t,n){var r=p(e,n);if(!r)return!1;var i=g(r);return!!i&&l(e,i,t)},t.joinUp=function(e,t){var n,i=e.selection,a=i instanceof o.NodeSelection;if(a){if(i.node.isTextblock||!r.canJoin(e.doc,i.from))return!1;n=i.from}else if(null==(n=r.joinPoint(e.doc,i.from,-1)))return!1;if(t){var s=e.tr.join(n);a&&s.setSelection(o.NodeSelection.create(s.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(s.scrollIntoView())}return!0},t.lift=function(e,t){var n=e.selection,i=n.$from,o=n.$to,a=i.blockRange(o),s=a&&r.liftTarget(a);return null!=s&&(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)},t.liftEmptyBlock=k,t.macBaseKeymap=R,t.newlineInCode=v,t.pcBaseKeymap=P,t.selectAll=S,t.selectNodeBackward=d,t.selectNodeForward=m,t.selectParentNode=function(e,t){var n,r=e.selection,i=r.$from,a=r.to,s=i.sharedDepth(a);return 0!=s&&(n=i.before(s),t&&t(e.tr.setSelection(o.NodeSelection.create(e.doc,n))),!0)},t.selectTextblockEnd=j,t.selectTextblockStart=C,t.setBlockType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){for(var i=!1,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=!1!==(n&&n.removeWhenPresent),i=!1!==(n&&n.enterInlineAtoms);return function(n,a){var s=n.selection,u=s.empty,l=s.$cursor,c=s.ranges;if(u&&!l||!function(e,t,n,r){for(var i,o=0;o=a.pos&&t+e.nodeSize<=s.pos)return!1;u=e.inlineContent&&e.type.allowsMarkType(n)}),u)return{v:!0}}())return i.v;return!1}(n.doc,c,e,i))return!1;if(a){if(l)a(e.isInSet(n.storedMarks||l.marks())?n.tr.removeStoredMark(e):n.tr.addStoredMark(e.create(t)));else{var d,h=n.tr;i||(c=function(e){for(var t=[],n=0;n=i.pos&&n+e.nodeSize<=a.pos)return n+1>i.pos&&t.push(new o.SelectionRange(i,i.doc.resolve(n+1))),i=i.doc.resolve(n+1+e.content.size),!1}),i.pos1&&void 0!==arguments[1]?arguments[1]:null;return function(n,i){var o=n.selection,a=o.$from,s=o.$to,u=a.blockRange(s),l=u&&r.findWrapping(u,e,t);return!!l&&(i&&i(n.tr.wrap(u,l).scrollIntoView()),!0)}}},34331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(78033),i=n(22765),o="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function a(e,t){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function s(e){var t=function(e){var t=Object.create(null);for(var n in e)t[function(e){var t,n,r,i,a=e.split(/-(?!$)/),s=a[a.length-1];"Space"==s&&(s=" ");for(var u=0;u127)&&(i=r.base[n.keyCode])&&i!=o){var l=t[a(i,n)];if(l&&l(e.state,e.dispatch,e))return!0}}return!1}}t.keydownHandler=s,t.keymap=function(e){return new i.Plugin({props:{handleKeyDown:s(e)}})}},1109:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=0,a=0;ae&&!1!==n(s,r+a,i||null,o)&&s.content.size){var l=a+1;s.nodesBetween(Math.max(0,e-l),Math.min(s.content.size,t-l),n,r+l)}a=u}}},{key:"descendants",value:function(e){this.nodesBetween(0,this.size,e)}},{key:"textBetween",value:function(e,t,n,r){var i="",o=!0;return this.nodesBetween(e,t,function(a,s){var u=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"==typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(o?o=!1:i+=n),i+=u},0),i}},{key:"append",value:function(t){if(!t.size)return this;if(!this.size)return t;var n=this.lastChild,r=t.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==t&&n==this.size)return this;var r=[],i=0;if(n>t)for(var o=0,a=0;at&&((an)&&(s=s.isText?s.cut(Math.max(0,t-a),Math.min(s.text.length,n-a)):s.cut(Math.max(0,t-a-1),Math.min(s.content.size,n-a-1))),r.push(s),i+=s.nodeSize),a=u}return new e(r,i)}},{key:"cutByIndex",value:function(t,n){return t==n?e.empty:0==t&&n==this.content.length?this:new e(this.content.slice(t,n))}},{key:"replaceChild",value:function(t,n){var r=this.content[t];if(r==n)return this;var i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,o)}},{key:"addToStart",value:function(t){return new e([t].concat(this.content),this.size+t.nodeSize)}},{key:"addToEnd",value:function(t){return new e(this.content.concat(t),this.size+t.nodeSize)}},{key:"eq",value:function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0;return function e(t,n,r){for(var i=0;;i++){if(i==t.childCount||i==n.childCount)return t.childCount==n.childCount?null:r;var o=t.child(i),a=n.child(i);if(o==a){r+=o.nodeSize;continue}if(!o.sameMarkup(a))return r;if(o.isText&&o.text!=a.text){for(var s=0;o.text[s]==a.text[s];s++)r++;return r}if(o.content.size||a.content.size){var u=e(o.content,a.content,r+1);if(null!=u)return u}r+=o.nodeSize}}(this,e,t)}},{key:"findDiffEnd",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size;return function e(t,n,r,i){for(var o=t.childCount,a=n.childCount;;){if(0==o||0==a)return o==a?null:{a:r,b:i};var s=t.child(--o),u=n.child(--a),l=s.nodeSize;if(s==u){r-=l,i-=l;continue}if(!s.sameMarkup(u))return{a:r,b:i};if(s.isText&&s.text!=u.text){for(var c=0,d=Math.min(s.text.length,u.text.length);c1&&void 0!==arguments[1]?arguments[1]:-1;if(0==e)return b(0,e);if(e==this.size)return b(this.content.length,e);if(e>this.size||e<0)throw RangeError("Position ".concat(e," outside of fragment (").concat(this,")"));for(var n=0,r=0;;n++){var i=r+this.child(n).nodeSize;if(i>=e){if(i==e||t>0)return b(n+1,i);return b(n,r)}r=i}}},{key:"toString",value:function(){return"<"+this.toStringInner()+">"}},{key:"toStringInner",value:function(){return this.content.join(", ")}},{key:"toJSON",value:function(){return this.content.length?this.content.map(function(e){return e.toJSON()}):null}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError("Invalid input for Fragment.fromJSON");return new e(n.map(t.nodeFromJSON))}},{key:"fromArray",value:function(t){if(!t.length)return e.empty;for(var n,r=0,i=0;ithis.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}},{key:"removeFromSet",value:function(e){for(var t=0;t0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}}],[{key:"fromJSON",value:function(t,n){if(!n)return e.empty;var r=n.openStart||0,i=n.openEnd||0;if("number"!=typeof r||"number"!=typeof i)throw RangeError("Invalid input for Slice.fromJSON");return new e(v.fromJSON(t,n.content),r,i)}},{key:"maxOpen",value:function(t){for(var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=0,i=0,o=t.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(var a=t.lastChild;a&&!a.isLeaf&&(n||!a.type.spec.isolating);a=a.lastChild)i++;return new e(t,r,i)}}]),e}();function S(e,t){if(!t.type.compatibleContent(e.type))throw new x("Cannot join "+t.type.name+" onto "+e.type.name)}function E(e,t,n){var r=e.node(n);return S(r,t.node(n)),r}function D(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function C(e,t,n,r){var i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(D(e.nodeAfter,r),o++));for(var s=o;sn&&D(j(E(e,t,n+1),O(e,t,n+1)),r),C(t,null,n,r),new v(r)}_.empty=new _(v.empty,0,0);var T=function(){function e(t,n,r){p(this,e),this.pos=t,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}return m(e,[{key:"resolveDepth",value:function(e){return null==e?this.depth:e<0?this.depth+e:e}},{key:"parent",get:function(){return this.node(this.depth)}},{key:"doc",get:function(){return this.node(0)}},{key:"node",value:function(e){return this.path[3*this.resolveDepth(e)]}},{key:"index",value:function(e){return this.path[3*this.resolveDepth(e)+1]}},{key:"indexAfter",value:function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}},{key:"start",value:function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}},{key:"end",value:function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}},{key:"before",value:function(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}},{key:"after",value:function(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}},{key:"textOffset",get:function(){return this.pos-this.path[this.path.length-1]}},{key:"nodeAfter",get:function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}},{key:"nodeBefore",get:function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}},{key:"posAtIndex",value:function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,i=0;i0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}},{key:"blockRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new M(this,e,n);return null}},{key:"sameParent",value:function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}},{key:"max",value:function(e){return e.pos>this.pos?e:this}},{key:"min",value:function(e){return e.pos=0&&n<=t.content.size))throw RangeError("Position "+n+" out of range");for(var r=[],i=0,o=n,a=t;;){var s=a.content.findIndex(o),u=s.index,l=s.offset,c=o-l;if(r.push(a,u,i+l),!c||(a=a.child(u)).isText)break;o=c-1,i+=l+1}return new e(n,r,o)}},{key:"resolveCached",value:function(t,n){var r=R.get(t);if(r)for(var i=0;i3&&void 0!==arguments[3]?arguments[3]:k.none;p(this,e),this.type=t,this.attrs=n,this.marks=i,this.content=r||v.empty}return m(e,[{key:"nodeSize",get:function(){return this.isLeaf?1:2+this.content.size}},{key:"childCount",get:function(){return this.content.childCount}},{key:"child",value:function(e){return this.content.child(e)}},{key:"maybeChild",value:function(e){return this.content.maybeChild(e)}},{key:"forEach",value:function(e){this.content.forEach(e)}},{key:"nodesBetween",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,n,r,this)}},{key:"descendants",value:function(e){this.nodesBetween(0,this.content.size,e)}},{key:"textContent",get:function(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}},{key:"textBetween",value:function(e,t,n,r){return this.content.textBetween(e,t,n,r)}},{key:"firstChild",get:function(){return this.content.firstChild}},{key:"lastChild",get:function(){return this.content.lastChild}},{key:"eq",value:function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}},{key:"sameMarkup",value:function(e){return this.hasMarkup(e.type,e.attrs,e.marks)}},{key:"hasMarkup",value:function(e,t,n){return this.type==e&&w(this.attrs,t||e.defaultAttrs||F)&&k.sameSet(this.marks,n||k.none)}},{key:"copy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}},{key:"mark",value:function(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}},{key:"cut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return _.empty;var r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o);return new _(r.node(o).content.cut(r.pos-a,i.pos-a),r.depth-o,i.depth-o)}},{key:"replace",value:function(e,t,n){return function(e,t,n){if(n.openStart>e.depth)throw new x("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new x("Inconsistent open depths");return function e(t,n,r,i){var o=t.index(i),a=t.node(i);if(o==n.index(i)&&i=0;i--)r=t.node(i).copy(v.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(r,t);return j(a,function e(t,n,r,i,o){var a=t.depth>o&&E(t,n,o+1),s=i.depth>o&&E(r,i,o+1),u=[];return C(null,t,o,u),a&&s&&n.index(o)==r.index(o)?(S(a,s),D(j(a,e(t,n,r,i,o+1)),u)):(a&&D(j(a,O(t,n,o+1)),u),C(n,r,o,u),s&&D(j(s,O(r,i,o+1)),u)),C(i,null,o,u),new v(u)}(t,u.start,u.end,n,i))}var l=t.parent,c=l.content;return j(l,c.cut(0,t.parentOffset).append(r.content).append(c.cut(n.parentOffset)))}(e,t,n,0)}(this.resolve(e),this.resolve(t),n)}},{key:"nodeAt",value:function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,i=n.offset;if(!(t=t.maybeChild(r)))return null;if(i==e||t.isText)return t;e-=i+1}}},{key:"childAfter",value:function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}}},{key:"childBefore",value:function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(re&&this.nodesBetween(e,t,function(e){return n.isInSet(e.marks)&&(r=!0),!r}),r}},{key:"isBlock",get:function(){return this.type.isBlock}},{key:"isTextblock",get:function(){return this.type.isTextblock}},{key:"inlineContent",get:function(){return this.type.inlineContent}},{key:"isInline",get:function(){return this.type.isInline}},{key:"isText",get:function(){return this.type.isText}},{key:"isLeaf",get:function(){return this.type.isLeaf}},{key:"isAtom",get:function(){return this.type.isAtom}},{key:"toString",value:function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),L(this.marks,e)}},{key:"contentMatchAt",value:function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}},{key:"canReplace",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.empty,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.childCount,o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}},{key:"eq",value:function(e){return this.sameMarkup(e)&&this.text==e.text}},{key:"toJSON",value:function(){var e=i(d(n.prototype),"toJSON",this).call(this);return e.text=this.text,e}}]),n}(N);function L(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var B=function(){function e(t){p(this,e),this.validEnd=t,this.next=[],this.wrapCache=[]}return m(e,[{key:"matchType",value:function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,r=this,i=t;r&&i1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[this];return function i(o,a){var s=o.matchFragment(e,n);if(s&&(!t||s.validEnd))return v.from(a.map(function(e){return e.createAndFill()}));for(var u=0;u=this.next.length)throw RangeError("There's no ".concat(e,"th edge in this content match"));return this.next[e]}},{key:"toString",value:function(){var e=[];return function t(n){e.push(n);for(var r=0;r"+e.indexOf(t.next[i].next);return r}).join("\n")}}],[{key:"parse",value:function(t,n){var r,i,o=new z(t,n);if(null==o.next)return e.empty;var a=function e(t){var n=[];do n.push(function(t){var n=[];do n.push(function(t){for(var n=function(t){if(t.eat("(")){var n=e(t);return t.eat(")")||t.err("Missing closing paren"),n}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{var r=(function(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var i=[];for(var o in n){var a=n[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(function(e){return null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}});return t.pos++,1==r.length?r[0]:{type:"choice",exprs:r}}}(t);;)if(t.eat("+"))n={type:"plus",expr:n};else if(t.eat("*"))n={type:"star",expr:n};else if(t.eat("?"))n={type:"opt",expr:n};else if(t.eat("{"))n=function(e,t){var n=U(e),r=n;return e.eat(",")&&(r="}"!=e.next?U(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}(t,n);else break;return n}(t));while(t.next&&")"!=t.next&&"|"!=t.next);return 1==n.length?n[0]:{type:"seq",exprs:n}}(t));while(t.eat("|"));return 1==n.length?n[0]:{type:"choice",exprs:n}}(o);o.next&&o.err("Unexpected trailing text");var s=(r=function(e){var t=[[]];return i(function e(t,o){if("choice"==t.type)return t.exprs.reduce(function(t,n){return t.concat(e(n,o))},[]);if("seq"==t.type)for(var a=0;;a++){var s=e(t.exprs[a],o);if(a==t.exprs.length-1)return s;i(s,o=n())}else if("star"==t.type){var u=n();return r(o,u),i(e(t.expr,u),u),[r(u)]}else if("plus"==t.type){var l=n();return i(e(t.expr,o),l),i(e(t.expr,l),l),[r(l)]}else if("opt"==t.type)return[r(o)].concat(e(t.expr,o));else if("range"==t.type){for(var c=o,d=0;d-1),a=0;a0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(this.isText)throw Error("NodeType.create can't construct text nodes");return new N(this,this.computeAttrs(e),v.from(t),k.setFrom(n))}},{key:"createChecked",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t=v.from(t),this.checkContent(t),new N(this,this.computeAttrs(e),t,k.setFrom(n))}},{key:"createAndFill",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),(t=v.from(t)).size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var i=this.contentMatch.matchFragment(t),o=i&&i.fillBefore(v.empty,!0);return o?new N(this,e,t.append(o),k.setFrom(n)):null}},{key:"validContent",value:function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n-1}},{key:"allowsMarks",value:function(e){if(null==this.markSet)return!0;for(var t=0;ti.indexOf(r))throw RangeError("Expected value of type ".concat(i," for attribute ").concat(n," on type ").concat(t,", got ").concat(r))}):r.validate}return m(e,[{key:"isRequired",get:function(){return!this.hasDefault}}]),e}(),K=function(){function e(t,n,r,i){p(this,e),this.name=t,this.rank=n,this.schema=r,this.spec=i,this.attrs=G(t,i.attrs),this.excluded=null;var o=H(this.attrs);this.instance=o?new k(this,o):null}return m(e,[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new k(this,W(this.attrs,e))}},{key:"removeFromSet",value:function(e){for(var t=0;t-1}}],[{key:"compile",value:function(t,n){var r=Object.create(null),i=0;return t.forEach(function(t,o){return r[t]=new e(t,i++,n,o)}),r}}]),e}(),J=function(){function e(t){p(this,e),this.linebreakReplacement=null,this.cached=Object.create(null);var n=this.spec={};for(var r in t)n[r]=t[r];n.nodes=g.from(t.nodes),n.marks=g.from(t.marks||{}),this.nodes=Y.compile(this.spec.nodes,this),this.marks=K.compile(this.spec.marks,this);var i=Object.create(null);for(var o in this.nodes){if(o in this.marks)throw RangeError(o+" can not be both a node and a mark");var a=this.nodes[o],s=a.spec.content||"",u=a.spec.marks;if(a.contentMatch=i[s]||(i[s]=B.parse(s,this.nodes)),a.inlineContent=a.contentMatch.inlineContent,a.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!a.isInline||!a.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=a}a.markSet="_"==u?null:u?X(this,u.split(" ")):""!=u&&a.inlineContent?null:[]}for(var l in this.marks){var c=this.marks[l],d=c.spec.excludes;c.excluded=null==d?[c]:""==d?[]:X(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}return m(e,[{key:"node",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else if(e instanceof Y){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,n,r)}},{key:"text",value:function(e,t){var n=this.nodes.text;return new I(n,n.defaultAttrs,e,k.setFrom(t))}},{key:"mark",value:function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}},{key:"nodeFromJSON",value:function(e){return N.fromJSON(this,e)}},{key:"markFromJSON",value:function(e){return k.fromJSON(this,e)}},{key:"nodeType",value:function(e){var t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}]),e}();function X(e,t){for(var n=[],r=0;r-1)&&n.push(a=u)}if(!a)throw SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}var Q=function(){function e(t,n){var r=this;p(this,e),this.schema=t,this.rules=n,this.tags=[],this.styles=[];var i=this.matchedStyles=[];n.forEach(function(e){if(null!=e.tag)r.tags.push(e);else if(null!=e.style){var t=/[^=]*/.exec(e.style)[0];0>i.indexOf(t)&&i.push(t),r.styles.push(e)}}),this.normalizeLists=!this.tags.some(function(e){if(!/^(ul|ol)\b/.test(e.tag)||!e.node)return!1;var n=t.nodes[e.node];return n.contentMatch.matchType(n)})}return m(e,[{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new eo(this,t,!1);return n.addAll(e,k.none,t.from,t.to),n.finish()}},{key:"parseSlice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new eo(this,t,!0);return n.addAll(e,k.none,t.from,t.to),_.maxOpen(n.finish())}},{key:"matchTag",value:function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;re.length)||61==a.charCodeAt(e.length)&&a.slice(e.length+1)==t)){if(o.getAttrs){var s=o.getAttrs(t);if(!1===s)continue;o.attrs=s||void 0}return o}}}}],[{key:"schemaRules",value:function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r=0;i--){var o=this.nodes[i],a=o.findWrapping(e);if(a&&(!n||n.length>a.length)&&(n=a,r=o,!a.length)||o.solid)break}if(!n)return null;this.sync(r);for(var s=0;s=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(i.concat(e.marks));try{for(u.s();!(a=u.n()).done;){var l=a.value;(o.type?o.type.allowsMarkType(l.type):es(l.type,e.type))&&(s=l.addToSet(s))}}catch(e){u.e(e)}finally{u.f()}return o.content.push(e.mark(s)),!0}return!1}},{key:"enter",value:function(e,t,n,r){var i=this.findPlace(e.create(t),n);return i&&(i=this.enterInner(e,t,n,!0,r)),i}},{key:"enterInner",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;this.closeExtra();var o=this.top;o.match=o.match&&o.match.matchType(e);var a=er(e,i,o.options);4&o.options&&0==o.content.length&&(a|=4);var s=k.none;return n=n.filter(function(t){return(o.type?!o.type.allowsMarkType(t.type):!es(t.type,e))||(s=t.addToSet(s),!1)}),this.nodes.push(new ei(e,t,s,r,null,a)),this.open++,n}},{key:"closeExtra",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}},{key:"finish",value:function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}},{key:"sync",value:function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}},{key:"currentPos",get:function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e}},{key:"findAtPoint",value:function(e,t){if(this.find)for(var n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1);return function e(a,s){for(;a>=0;a--){var u=n[a];if(""==u){if(a==n.length-1||0==a)continue;for(;s>=o;s--)if(e(a-1,s))return!0;return!1}var l=s>0||0==s&&i?t.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!l||l.name!=u&&-1==l.groups.indexOf(u))return!1;s--}return!0}(n.length-1,this.open)}},{key:"textblockFromContext",value:function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}}}]),e}();function ea(e){var t={};for(var n in e)t[n]=e[n];return t}function es(e,t){var n,r=t.schema.nodes;for(var i in r)if(0!==(n=function(){var n=r[i];if(!n.allowsMarkType(e))return 0;var o=[];if(function e(n){o.push(n);for(var r=0;ro.indexOf(s)&&e(s))return!0}}(n.contentMatch))return{v:!0}}())&&n)return n.v}var eu=function(){function e(t,n){p(this,e),this.nodes=t,this.marks=n}return m(e,[{key:"serializeFragment",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;r||(r=ec(n).createDocumentFragment());var i=r,o=[];return e.forEach(function(e){if(o.length||e.marks.length){for(var r=0,a=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=this.serializeNodeInner(e,t),r=e.marks.length-1;r>=0;r--){var i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}},{key:"serializeMark",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.marks[e.type.name];return r&&eh(ec(n),r(e,t),null,e.attrs)}}],[{key:"renderSpec",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return eh(e,t,n,r)}},{key:"fromSchema",value:function(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}},{key:"nodesFromSchema",value:function(e){var t=el(e.nodes);return t.text||(t.text=function(e){return e.text}),t}},{key:"marksFromSchema",value:function(e){return el(e.marks)}}]),e}();function el(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function ec(e){return e.document||window.document}var ed=new WeakMap;function eh(e,t,n,r){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var i,o,a,s,u=t[0];if("string"!=typeof u)throw RangeError("Invalid array passed to renderSpec");if(r&&(void 0===(o=ed.get(r))&&ed.set(r,(i=null,function e(t){if(t&&"object"==h(t)){if(Array.isArray(t)){if("string"==typeof t[0])i||(i=[]),i.push(t);else for(var n=0;n-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");var l=u.indexOf(" ");l>0&&(n=u.slice(0,l),u=u.slice(l+1));var c=n?e.createElementNS(n,u):e.createElement(u),d=t[1],p=1;if(d&&"object"==h(d)&&null==d.nodeType&&!Array.isArray(d)){for(var f in p=2,d)if(null!=d[f]){var m=f.indexOf(" ");m>0?c.setAttributeNS(f.slice(0,m),f.slice(m+1),d[f]):c.setAttribute(f,d[f])}}for(var g=p;gp)throw RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}var y=eh(e,v,n,r),b=y.dom,w=y.contentDOM;if(c.appendChild(b),w){if(a)throw RangeError("Multiple content holes");a=w}}return{dom:c,contentDOM:a}}t.ContentMatch=B,t.DOMParser=Q,t.DOMSerializer=eu,t.Fragment=v,t.Mark=k,t.MarkType=K,t.Node=N,t.NodeRange=M,t.NodeType=Y,t.ReplaceError=x,t.ResolvedPos=T,t.Schema=J,t.Slice=_},151:function(e,t,n){"use strict";var r=n(61563),i=n(1109),o=n(22765),a=["ol",0],s=["ul",0],u=["li",0],l={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM:function(e){return 1==e.attrs.order?a:["ol",{start:e.attrs.order},0]}},c={parseDOM:[{tag:"ul"}],toDOM:function(){return s}},d={parseDOM:[{tag:"li"}],toDOM:function(){return u},defining:!0};function h(e,t){var n={};for(var r in e)n[r]=e[r];for(var i in t)n[i]=t[i];return n}function p(e,t){return function(n,a){var s=n.selection,u=s.$from,l=s.$to,c=s.node;if(c&&c.isBlock||u.depth<2||!u.sameParent(l))return!1;var d=u.node(-1);if(d.type!=e)return!1;if(0==u.parent.content.size&&u.node(-1).childCount==u.indexAfter(-1)){if(3==u.depth||u.node(-3).type!=e||u.index(-2)!=u.node(-2).childCount-1)return!1;if(a){for(var h=i.Fragment.empty,p=u.index(-1)?1:u.index(-2)?2:3,f=u.depth-p;f>=u.depth-3;f--)h=i.Fragment.from(u.node(f).copy(h));var m=u.indexAfter(-1)-1)return!1;e.isTextblock&&0==e.content.size&&(y=t+1)}),y>-1&&v.setSelection(o.Selection.near(v.doc.resolve(y))),a(v.scrollIntoView())}return!0}var b=l.pos==u.end()?d.contentMatchAt(0).defaultType:null,w=n.tr.delete(u.pos,l.pos),k=b?[t?{type:e,attrs:t}:null,{type:b}]:void 0;return!!r.canSplit(w.doc,u.pos,2,k)&&(a&&a(w.split(u.pos,2,k).scrollIntoView()),!0)}}t.addListNodes=function(e,t,n){return e.append({ordered_list:h(l,{content:"list_item+",group:n}),bullet_list:h(c,{content:"list_item+",group:n}),list_item:h(d,{content:t})})},t.bulletList=c,t.liftListItem=function(e){return function(t,n){var o=t.selection,a=o.$from,s=o.$to,u=a.blockRange(s,function(t){return t.childCount>0&&t.firstChild.type==e});return!!u&&(!n||(a.node(u.depth-1).type==e?function(e,t,n,o){var a=e.tr,s=o.end,u=o.$to.end(o.depth);sl;u--)s-=a.child(u).nodeSize,o.delete(s-1,s+1);var c=o.doc.resolve(n.start),d=c.nodeAfter;if(o.mapping.map(n.end)!=n.start+c.nodeAfter.nodeSize)return!1;var h=0==n.startIndex,p=n.endIndex==a.childCount,f=c.node(-1),m=c.index(-1);if(!f.canReplace(m+(h?0:1),m+1,d.content.append(p?i.Fragment.empty:i.Fragment.from(a))))return!1;var g=c.pos,v=g+d.nodeSize;return o.step(new r.ReplaceAroundStep(g-(h?1:0),v+(p?1:0),g+1,v-1,new i.Slice((h?i.Fragment.empty:i.Fragment.from(a.copy(i.Fragment.empty))).append(p?i.Fragment.empty:i.Fragment.from(a.copy(i.Fragment.empty))),h?0:1,p?0:1),h?0:1)),t(o.scrollIntoView()),!0}(t,n,u)))}},t.listItem=d,t.orderedList=l,t.sinkListItem=function(e){return function(t,n){var o=t.selection,a=o.$from,s=o.$to,u=a.blockRange(s,function(t){return t.childCount>0&&t.firstChild.type==e});if(!u)return!1;var l=u.startIndex;if(0==l)return!1;var c=u.parent,d=c.child(l-1);if(d.type!=e)return!1;if(n){var h=d.lastChild&&d.lastChild.type==c.type,p=i.Fragment.from(h?e.create():null),f=new i.Slice(i.Fragment.from(e.create(null,i.Fragment.from(c.type.create(null,p)))),h?3:1,0),m=u.start,g=u.end;n(t.tr.step(new r.ReplaceAroundStep(m-(h?3:1),g,m,g,f,1,!0)).scrollIntoView())}return!0}},t.splitListItem=p,t.splitListItemKeepMarks=function(e,t){var n=p(e,t);return function(e,t){return n(e,t&&function(n){var r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();r&&n.ensureMarks(r),t(n)})}},t.wrapInList=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,o){var a=n.selection,s=a.$from,u=a.$to,l=s.blockRange(u),c=!1,d=l;if(!l)return!1;if(l.depth>=2&&s.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==s.index(l.depth-1))return!1;var h=n.doc.resolve(l.start-2);d=new i.NodeRange(h,h,l.depth),l.endIndex=0;u--)s=i.Fragment.from(n[u].type.create(n[u].attrs,s));e.step(new r.ReplaceAroundStep(t.start-(o?2:0),t.end,t.start,t.end,new i.Slice(s,0,0),n.length,!0));for(var l=0,c=0;c1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty,n=t.content.lastChild,r=null,i=0;i2&&void 0!==arguments[2]&&arguments[2],r=e.parent.inlineContent?new b(e):E(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(var i=e.depth-1;i>=0;i--){var o=t<0?E(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):E(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(o)return o}return null}},{key:"near",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new _(e.node(0))}},{key:"atStart",value:function(e){return E(e,e,0,0,1)||new _(e)}},{key:"atEnd",value:function(e){return E(e,e,e.content.size,e.childCount,-1)||new _(e)}},{key:"fromJSON",value:function(e,t){if(!t||!t.type)throw RangeError("Invalid input for Selection.fromJSON");var n=f[t.type];if(!n)throw RangeError("No selection type ".concat(t.type," defined"));return n.fromJSON(e,t)}},{key:"jsonID",value:function(e,t){if(e in f)throw RangeError("Duplicate use of selection JSON ID "+e);return f[e]=t,t.prototype.jsonID=e,t}}]),e}();m.prototype.visible=!0;var g=d(function e(t,n){l(this,e),this.$from=t,this.$to=n}),v=!1;function y(e){v||e.parent.inlineContent||(v=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}var b=function(e){o(n,e);var t=s(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return l(this,n),y(e),y(r),t.call(this,e,r)}return d(n,[{key:"$cursor",get:function(){return this.$anchor.pos==this.$head.pos?this.$head:null}},{key:"map",value:function(e,t){var r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return m.near(r);var i=e.resolve(t.map(this.anchor));return new n(i.parent.inlineContent?i:r,r)}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty;if(i(u(n.prototype),"replace",this).call(this,e,t),t==h.Slice.empty){var r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}},{key:"eq",value:function(e){return e instanceof n&&e.anchor==this.anchor&&e.head==this.head}},{key:"getBookmark",value:function(){return new w(this.anchor,this.head)}},{key:"toJSON",value:function(){return{type:"text",anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid input for TextSelection.fromJSON");return new n(e.resolve(t.anchor),e.resolve(t.head))}},{key:"create",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}},{key:"between",value:function(e,t,r){var i=e.pos-t.pos;if((!r||i)&&(r=i>=0?1:-1),!t.parent.inlineContent){var o=m.findFrom(t,r,!0)||m.findFrom(t,-r,!0);if(!o)return m.near(t,r);t=o.$head}return e.parent.inlineContent||(0==i?e=t:(e=(m.findFrom(e,-r,!0)||m.findFrom(e,r,!0)).$anchor).pos1&&void 0!==arguments[1]?arguments[1]:h.Slice.empty;if(t==h.Slice.empty){e.delete(0,e.doc.content.size);var r=m.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else i(u(n.prototype),"replace",this).call(this,e,t)}},{key:"toJSON",value:function(){return{type:"all"}}},{key:"map",value:function(e){return new n(e)}},{key:"eq",value:function(e){return e instanceof n}},{key:"getBookmark",value:function(){return S}}],[{key:"fromJSON",value:function(e){return new n(e)}}]),n}(m);m.jsonID("all",_);var S={map:function(){return this},resolve:function(e){return new _(e)}};function E(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return b.create(e,n);for(var a=r-(i>0?0:1);i>0?a=0;a+=i){var s=t.child(a);if(s.isAtom){if(!o&&k.isSelectable(s))return k.create(e,n-(i<0?s.nodeSize:0))}else{var u=E(e,s,n+i,i<0?s.childCount:0,i,o);if(u)return u}n+=s.nodeSize*i}return null}function D(e,t,n){var r,i=e.steps.length-1;if(!(i0}},{key:"setStoredMarks",value:function(e){return this.storedMarks=e,this.updated|=2,this}},{key:"ensureMarks",value:function(e){return h.Mark.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}},{key:"addStoredMark",value:function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}},{key:"removeStoredMark",value:function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}},{key:"storedMarksSet",get:function(){return(2&this.updated)>0}},{key:"addStep",value:function(e,t){i(u(n.prototype),"addStep",this).call(this,e,t),this.updated=-3&this.updated,this.storedMarks=null}},{key:"setTime",value:function(e){return this.time=e,this}},{key:"replaceSelection",value:function(e){return this.selection.replace(this,e),this}},{key:"replaceSelectionWith",value:function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||h.Mark.none))),n.replaceWith(this,e),this}},{key:"deleteSelection",value:function(){return this.selection.replace(this),this}},{key:"insertText",value:function(e,t,n){var r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);var i=this.storedMarks;if(!i){var o=this.doc.resolve(t);i=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(m.near(this.selection.$to)),this}},{key:"setMeta",value:function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}},{key:"getMeta",value:function(e){return this.meta["string"==typeof e?e:e.key]}},{key:"isGeneric",get:function(){for(var e in this.meta)return!1;return!0}},{key:"scrollIntoView",value:function(){return this.updated|=4,this}},{key:"scrolledIntoView",get:function(){return(4&this.updated)>0}}]),n}(p.Transform);function j(e,t){return t&&e?e.bind(t):e}var O=d(function e(t,n,r){l(this,e),this.name=t,this.init=j(n.init,r),this.apply=j(n.apply,r)}),T=[new O("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new O("selection",{init:function(e,t){return e.selection||m.atStart(t.doc)},apply:function(e){return e.selection}}),new O("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new O("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],A=d(function e(t,n){var r=this;l(this,e),this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=T.slice(),n&&n.forEach(function(e){if(r.pluginsByKey[e.key])throw RangeError("Adding different instances of a keyed plugin ("+e.key+")");r.plugins.push(e),r.pluginsByKey[e.key]=e,e.spec.state&&r.fields.push(new O(e.key,e.spec.state,e))})}),P=function(){function e(t){l(this,e),this.config=t}return d(e,[{key:"schema",get:function(){return this.config.schema}},{key:"plugins",get:function(){return this.config.plugins}},{key:"apply",value:function(e){return this.applyTransaction(e).state}},{key:"filterTransaction",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=0;n0&&void 0!==arguments[0]?arguments[0]:"key";l(this,e),this.key=F(t)}return d(e,[{key:"get",value:function(e){return e.config.pluginsByKey[this.key]}},{key:"getState",value:function(e){return e[this.key]}}]),e}();t.AllSelection=_,t.EditorState=P,t.NodeSelection=k,t.Plugin=R,t.PluginKey=N,t.Selection=m,t.SelectionRange=g,t.TextSelection=b,t.Transaction=C},61563:function(e,t,n){"use strict";function r(e){var t="function"==typeof Map?new Map:void 0;return(r=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i(e,arguments,l(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}function i(e,t,n){return(i=u()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=u();return function(){var n,r=l(e);return n=t?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function u(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n0}},{key:"deletedBefore",get:function(){return(5&this.delInfo)>0}},{key:"deletedAfter",get:function(){return(6&this.delInfo)>0}},{key:"deletedAcross",get:function(){return(4&this.delInfo)>0}}]),e}(),g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(d(this,e),this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}return p(e,[{key:"recover",value:function(e){var t=0,n=65535&e;if(!this.inverted)for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!0)}},{key:"_map",value:function(e,t,n){for(var r=0,i=this.inverted?2:1,o=this.inverted?1:2,a=0;ae)break;var u=this.ranges[a+i],l=this.ranges[a+o],c=s+u;if(e<=c){var d=u?e==s?-1:e==c?1:t:t,h=s+r+(d<0?0:l);if(n)return h;var p=e==(t<0?s:c)?null:a/3+(e-s)*65536,f=e==s?2:e==c?1:4;return(t<0?e!=s:e!=c)&&(f|=8),new m(h,f,p)}r+=l-u}return n?e+r:new m(e+r,0,null)}},{key:"touches",value:function(e,t){for(var n=0,r=65535&t,i=this.inverted?2:1,o=this.inverted?1:2,a=0;ae)break;var u=this.ranges[a+i];if(e<=s+u&&a==3*r)return!0;n+=this.ranges[a+o]-u}return!1}},{key:"forEach",value:function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,r=0,i=0;r0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;d(this,e),this.maps=t,this.mirror=n,this.from=r,this.to=i}return p(e,[{key:"slice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.maps.length;return new e(this.maps,this.mirror,t,n)}},{key:"copy",value:function(){return new e(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}},{key:"appendMap",value:function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}},{key:"appendMapping",value:function(e){for(var t=0,n=this.maps.length;t=0;t--){var r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}},{key:"invert",value:function(){var t=new e;return t.appendMappingInverted(this),t}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.mirror)return this._map(e,t,!0);for(var n=this.from;n1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}},{key:"_map",value:function(e,t,n){for(var r=0,i=this.from;ii&&a=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(b);b.jsonID("addMark",x);var _=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return d(this,n),(o=t.call(this)).from=e,o.to=r,o.mark=i,o}return p(n,[{key:"apply",value:function(e){var t=this,n=e.slice(this.from,this.to),r=new f.Slice(k(n.content,function(e){return e.mark(t.mark.removeFromSet(e.marks))},e),n.openStart,n.openEnd);return w.fromReplace(e,this.from,this.to,r)}},{key:"invert",value:function(){return new x(this.from,this.to,this.mark)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new n(t.pos,r.pos,this.mark)}},{key:"merge",value:function(e){return e instanceof n&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new n(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}},{key:"toJSON",value:function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new n(t.from,t.to,e.markFromJSON(t.mark))}}]),n}(b);b.jsonID("removeMark",_);var S=function(e){o(n,e);var t=s(n);function n(e,r){var i;return d(this,n),(i=t.call(this)).pos=e,i.mark=r,i}return p(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return w.fail("No node at mark step's position");var n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return w.fromReplace(e,this.pos,this.pos+1,new f.Slice(f.Fragment.from(n),0,t.isLeaf?0:1))}},{key:"invert",value:function(e){var t=e.nodeAt(this.pos);if(t){var r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(var i=0;i3&&void 0!==arguments[3]&&arguments[3];return d(this,n),(o=t.call(this)).from=e,o.to=r,o.slice=i,o.structure=a,o}return p(n,[{key:"apply",value:function(e){return this.structure&&j(e,this.from,this.to)?w.fail("Structure replace would overwrite content"):w.fromReplace(e,this.from,this.to,this.slice)}},{key:"getMap",value:function(){return new g([this.from,this.to-this.from,this.slice.size])}},{key:"invert",value:function(e){return new n(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new n(t.pos,Math.max(t.pos,r.pos),this.slice)}},{key:"merge",value:function(e){if(!(e instanceof n)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var t=this.slice.size+e.slice.size==0?f.Slice.empty:new f.Slice(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new n(e.from,this.to,t,this.structure)}var r=this.slice.size+e.slice.size==0?f.Slice.empty:new f.Slice(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new n(this.from,this.to+(e.to-e.from),r,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new n(t.from,t.to,f.Slice.fromJSON(e,t.slice),!!t.structure)}}]),n}(b);b.jsonID("replace",D);var C=function(e){o(n,e);var t=s(n);function n(e,r,i,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return d(this,n),(u=t.call(this)).from=e,u.to=r,u.gapFrom=i,u.gapTo=o,u.slice=a,u.insert=s,u.structure=l,u}return p(n,[{key:"apply",value:function(e){if(this.structure&&(j(e,this.from,this.gapFrom)||j(e,this.gapTo,this.to)))return w.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return w.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?w.fromReplace(e,this.from,this.to,n):w.fail("Content does not fit in gap")}},{key:"getMap",value:function(){return new g([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}},{key:"invert",value:function(e){var t=this.gapTo-this.gapFrom;return new n(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}},{key:"map",value:function(e){var t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||ir.pos?null:new n(t.pos,r.pos,i,o,this.slice,this.insert,this.structure)}},{key:"toJSON",value:function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new n(t.from,t.to,t.gapFrom,t.gapTo,f.Slice.fromJSON(e,t.slice),t.insert,!!t.structure)}}]),n}(b);function j(e,t,n){for(var r=e.resolve(t),i=n-t,o=r.depth;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0)for(var a=r.node(o).maybeChild(r.indexAfter(o));i>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,i--}return!1}function O(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.contentMatch,i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=e.doc.nodeAt(t),a=[],s=t+1,u=0;u=0;y--)e.step(a[y])}function T(e){return{type:e,attrs:null}}function A(e,t){return!!(e&&t&&!e.isLeaf&&e.canAppend(t))}function P(e,t,n){var r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(var i=r.depth-1;i>=0;i--){var o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(var a=r.depth-1;a>=0;a--){var s=r.indexAfter(a);if(r.node(a).canReplaceWith(s,s,n))return r.after(a+1);if(s2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:f.Slice.empty;if(t==n&&!r.size)return null;var i=e.resolve(t),o=e.resolve(n);return M(i,o,r)?new D(t,n,r):new F(i,o,r).fit()}function M(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}b.jsonID("replaceAround",C);var F=function(){function e(t,n,r){d(this,e),this.$from=t,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=f.Fragment.empty;for(var i=0;i<=t.depth;i++){var o=t.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(i))})}for(var a=t.depth;a>0;a--)this.placed=f.Fragment.from(t.node(a).copy(this.placed))}return p(e,[{key:"depth",get:function(){return this.frontier.length-1}},{key:"fit",value:function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(t<0?this.$to:r.doc.resolve(t));if(!i)return null;for(var o=this.placed,a=r.depth,s=i.depth;a&&s&&1==o.childCount;)o=o.firstChild.content,a--,s--;var u=new f.Slice(o,a,s);return t>-1?new C(r.pos,t,this.$to.pos,this.$to.end(),u,n):u.size||r.pos!=this.$to.pos?new D(r.pos,i.pos,u):null}},{key:"findFittable",value:function(){for(var e=this.unplaced.openStart,t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(var o=1;o<=2;o++)for(var a=1==o?e:this.unplaced.openStart;a>=0;a--)for(var s=null,u=(a?(s=L(this.unplaced.content,a-1).firstChild).content:this.unplaced.content).firstChild,l=this.depth;l>=0;l--){var c=this.frontier[l],d=c.type,h=c.match,p=void 0,m=null;if(1==o&&(u?h.matchType(u.type)||(m=h.fillBefore(f.Fragment.from(u),!1)):s&&d.compatibleContent(s.type)))return{sliceDepth:a,frontierDepth:l,parent:s,inject:m};if(2==o&&u&&(p=h.findWrapping(u.type)))return{sliceDepth:a,frontierDepth:l,parent:s,wrap:p};if(s&&h.matchType(s.type))break}}},{key:"openMore",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=L(t,n);return!!i.childCount&&!i.firstChild.isLeaf&&(this.unplaced=new f.Slice(t,n+1,Math.max(r,i.size+n>=t.size-r?n+1:0)),!0)}},{key:"dropNode",value:function(){var e=this.unplaced,t=e.content,n=e.openStart,r=e.openEnd,i=L(t,n);if(i.childCount<=1&&n>0){var o=t.size-n<=n+i.size;this.unplaced=new f.Slice(N(t,n-1,1),n-1,o?n-1:r)}else this.unplaced=new f.Slice(N(t,n,1),n,r)}},{key:"placeNodes",value:function(e){for(var t=e.sliceDepth,n=e.frontierDepth,r=e.parent,i=e.inject,o=e.wrap;this.depth>n;)this.closeFrontierNode();if(o)for(var a=0;a1||0==l||y.content.size)&&(p=b,d.push(function e(t,n,r){if(n<=0)return t;var i=t.content;return n>1&&(i=i.replaceChild(0,e(i.firstChild,n-1,1==i.childCount?r-1:0))),n>0&&(i=t.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(f.Fragment.empty,!0)))),t.copy(i)}(y.mark(m.allowedMarks(y.marks)),1==c?l:0,c==u.childCount?v:-1)))}var w=c==u.childCount;w||(v=-1),this.placed=I(this.placed,n,f.Fragment.from(d)),this.frontier[n].match=p,w&&v<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var k=0,x=u;k1&&r==this.$to.end(--n);)++r;return r}},{key:"findCloseLevel",value:function(e){r:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],r=n.match,i=n.type,o=t=0;s--){var u=this.frontier[s],l=u.match,c=B(e,s,u.type,l,!0);if(!c||c.childCount)continue r}return{depth:t,fit:a,move:o?e.doc.resolve(e.after(t+1)):e}}}}},{key:"close",value:function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=I(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var r=e.node(n),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(n));this.openFrontierNode(r.type,r.attrs,i)}return e}},{key:"openFrontierNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=I(this.placed,this.depth,f.Fragment.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}},{key:"closeFrontierNode",value:function(){var e=this.frontier.pop().match.fillBefore(f.Fragment.empty,!0);e.childCount&&(this.placed=I(this.placed,this.frontier.length,e))}}]),e}();function N(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(N(e.firstChild.content,t-1,n)))}function I(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(I(e.lastChild.content,t-1,n)))}function L(e,t){for(var n=0;n=0;i--){var o=e.start(i);if(ot.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}var U=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return d(this,n),(o=t.call(this)).pos=e,o.attr=r,o.value=i,o}return p(n,[{key:"apply",value:function(e){var t=e.nodeAt(this.pos);if(!t)return w.fail("No node at attribute step's position");var n=Object.create(null);for(var r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;var i=t.type.create(n,null,t.marks);return w.fromReplace(e,this.pos,this.pos+1,new f.Slice(f.Fragment.from(i),0,t.isLeaf?0:1))}},{key:"getMap",value:function(){return g.empty}},{key:"invert",value:function(e){return new n(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}},{key:"map",value:function(e){var t=e.mapResult(this.pos,1);return t.deletedAfter?null:new n(t.pos,this.attr,this.value)}},{key:"toJSON",value:function(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new n(t.pos,t.attr,t.value)}}]),n}(b);b.jsonID("attr",U);var q=function(e){o(n,e);var t=s(n);function n(e,r){var i;return d(this,n),(i=t.call(this)).attr=e,i.value=r,i}return p(n,[{key:"apply",value:function(e){var t=Object.create(null);for(var n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;var r=e.type.create(t,e.content,e.marks);return w.ok(r)}},{key:"getMap",value:function(){return g.empty}},{key:"invert",value:function(e){return new n(this.attr,e.attrs[this.attr])}},{key:"map",value:function(e){return this}},{key:"toJSON",value:function(){return{stepType:"docAttr",attr:this.attr,value:this.value}}}],[{key:"fromJSON",value:function(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new n(t.attr,t.value)}}]),n}(b);b.jsonID("docAttr",q),t.TransformError=function(e){o(n,e);var t=s(n);function n(){return d(this,n),t.apply(this,arguments)}return p(n)}(r(Error)),t.TransformError=function e(t){var n=Error.call(this,t);return n.__proto__=e.prototype,n},t.TransformError.prototype=Object.create(Error.prototype),t.TransformError.prototype.constructor=t.TransformError,t.TransformError.prototype.name="TransformError";var $=function(){function e(t){d(this,e),this.doc=t,this.steps=[],this.docs=[],this.mapping=new v}return p(e,[{key:"before",get:function(){return this.docs.length?this.docs[0]:this.doc}},{key:"step",value:function(e){var n=this.maybeStep(e);if(n.failed)throw new t.TransformError(n.failed);return this}},{key:"maybeStep",value:function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}},{key:"docChanged",get:function(){return this.steps.length>0}},{key:"addStep",value:function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}},{key:"replace",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.Slice.empty,r=R(this.doc,e,t,n);return r&&this.step(r),this}},{key:"replaceWith",value:function(e,t,n){return this.replace(e,t,new f.Slice(f.Fragment.from(n),0,0))}},{key:"delete",value:function(e,t){return this.replace(e,t,f.Slice.empty)}},{key:"insert",value:function(e,t){return this.replaceWith(e,e,t)}},{key:"replaceRange",value:function(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);var i=e.doc.resolve(t),o=e.doc.resolve(n);if(M(i,o,r))return e.step(new D(t,n,r));var a=z(i,e.doc.resolve(n));0==a[a.length-1]&&a.pop();var s=-(i.depth+1);a.unshift(s);for(var u=i.depth,l=i.pos-1;u>0;u--,l--){var c=i.node(u).type.spec;if(c.defining||c.definingAsContext||c.isolating)break;a.indexOf(u)>-1?s=u:i.before(u)==l&&a.splice(1,0,-u)}for(var d=a.indexOf(s),h=[],p=r.openStart,m=r.content,g=0;;g++){var v=m.firstChild;if(h.push(v),g==r.openStart)break;m=v.content}for(var y=p-1;y>=0;y--){var b,w=h[y],k=(b=w.type).spec.defining||b.spec.definingForContent;if(k&&!w.sameMarkup(i.node(Math.abs(s)-1)))p=y;else if(k||!w.type.isTextblock)break}for(var x=r.openStart;x>=0;x--){var _=(x+p+1)%(r.openStart+1),S=h[_];if(S)for(var E=0;Ei){var s=o.contentMatchAt(0),u=s.fillBefore(t).append(t);t=u.append(s.matchFragment(u).fillBefore(f.Fragment.empty,!0))}return t}(r.content,0,r.openStart,_),_,r.openEnd))}}for(var A=e.steps.length,P=a.length-1;P>=0&&(e.replace(t,n,r),!(e.steps.length>A));P--){var R=a[P];R<0||(t=i.before(R),n=o.after(R))}}(this,e,t,n),this}},{key:"replaceRangeWith",value:function(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){var i=P(e.doc,t,r.type);null!=i&&(t=n=i)}e.replaceRange(t,n,new f.Slice(f.Fragment.from(r),0,0))}(this,e,t,n),this}},{key:"deleteRange",value:function(e,t){return function(e,t,n){for(var r=e.doc.resolve(t),i=e.doc.resolve(n),o=z(r,i),a=0;a0&&(u||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return e.delete(r.before(s),i.after(s))}for(var l=1;l<=r.depth&&l<=i.depth;l++)if(t-r.start(l)==r.depth-l&&n>r.end(l)&&i.end(l)-n!=i.depth-l)return e.delete(r.before(l),n);e.delete(t,n)}(this,e,t),this}},{key:"lift",value:function(e,t){return function(e,t,n){for(var r=t.$from,i=t.$to,o=t.depth,a=r.before(o+1),s=i.after(o+1),u=a,l=s,c=f.Fragment.empty,d=0,h=o,p=!1;h>n;h--)p||r.index(h)>0?(p=!0,c=f.Fragment.from(r.node(h).copy(c)),d++):u--;for(var m=f.Fragment.empty,g=0,v=o,y=!1;v>n;v--)y||i.after(v+1)1&&void 0!==arguments[1]?arguments[1]:1;return function(e,t,n){var r=new D(t-n,t+n,f.Slice.empty,!0);e.step(r)}(this,e,t),this}},{key:"wrap",value:function(e,t){return function(e,t,n){for(var r=f.Fragment.empty,i=n.length-1;i>=0;i--){if(r.size){var o=n[i].type.contentMatch.matchFragment(r);if(!o||!o.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=f.Fragment.from(n[i].type.create(n[i].attrs,r))}var a=t.start,s=t.end;e.step(new C(a,s,a,s,new f.Slice(r,0,0),n.length,!0))}(this,e,t),this}},{key:"setBlockType",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e,t,n,r,i){if(!r.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");var o=e.steps.length;e.doc.nodesBetween(t,n,function(t,n){var a,s,u,l,c="function"==typeof i?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,c)&&(a=e.doc,s=e.mapping.slice(o).map(n),l=(u=a.resolve(s)).index(),u.parent.canReplaceWith(l,l+1,r))){var d=null;if(r.schema.linebreakReplacement){var h="pre"==r.whitespace,p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?d=!1:!h&&p&&(d=!0)}!1===d&&function(e,t,n,r){t.forEach(function(i,o){if(i.type==i.type.schema.linebreakReplacement){var a=e.mapping.slice(r).map(n+1+o);e.replaceWith(a,a+1,t.type.schema.text("\n"))}})}(e,t,n,o),O(e,e.mapping.slice(o).map(n,1),r,void 0,null===d);var m=e.mapping.slice(o),g=m.map(n,1),v=m.map(n+t.nodeSize,1);return e.step(new C(g,v,g+1,v-1,new f.Slice(f.Fragment.from(r.create(c,null,t.marks)),0,0),1,!0)),!0===d&&function(e,t,n,r){t.forEach(function(i,o){if(i.isText)for(var a,s=/\r?\n|\r/g;a=s.exec(i.text);){var u=e.mapping.slice(r).map(n+1+o+a.index);e.replaceWith(u,u+1,t.type.schema.linebreakReplacement.create())}})}(e,t,n,o),!1}})}(this,e,t,n,r),this}},{key:"setNodeMarkup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return function(e,t,n,r,i){var o=e.doc.nodeAt(t);if(!o)throw RangeError("No node at given position");n||(n=o.type);var a=n.create(r,null,i||o.marks);if(o.isLeaf)return e.replaceWith(t,t+o.nodeSize,a);if(!n.validContent(o.content))throw RangeError("Invalid content for node type "+n.name);e.step(new C(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new f.Slice(f.Fragment.from(a),0,0),1,!0))}(this,e,t,n,r),this}},{key:"setNodeAttribute",value:function(e,t,n){return this.step(new U(e,t,n)),this}},{key:"setDocAttribute",value:function(e,t){return this.step(new q(e,t)),this}},{key:"addNodeMark",value:function(e,t){return this.step(new S(e,t)),this}},{key:"removeNodeMark",value:function(e,t){if(!(t instanceof f.Mark)){var n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new E(e,t)),this}},{key:"split",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;return function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=e.doc.resolve(t),o=f.Fragment.empty,a=f.Fragment.empty,s=i.depth,u=i.depth-n,l=n-1;s>u;s--,l--){o=f.Fragment.from(i.node(s).copy(o));var c=r&&r[l];a=f.Fragment.from(c?c.type.create(c.attrs,a):i.node(s).copy(a))}e.step(new D(t,t,new f.Slice(o.append(a),n,n),!0))}(this,e,t,n),this}},{key:"addMark",value:function(e,t,n){var r,i,o,a,s;return r=this,a=[],s=[],r.doc.nodesBetween(e,t,function(r,u,l){if(r.isInline){var c=r.marks;if(!n.isInSet(c)&&l.type.allowsMarkType(n.type)){for(var d=Math.max(u,e),h=Math.min(u+r.nodeSize,t),p=n.addToSet(c),f=0;f2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(var s=i.depth-1,u=n-2;s>o;s--,u--){var l=i.node(s),c=i.index(s);if(l.type.spec.isolating)return!1;var d=l.content.cutByIndex(c,l.childCount),h=r&&r[u+1];h&&(d=d.replaceChild(0,h.type.create(h.attrs)));var p=r&&r[u]||l;if(!l.canReplace(c+1,l.childCount)||!p.type.validContent(d))return!1}var f=i.indexAfter(o),m=r&&r[0];return i.node(o).canReplaceWith(f,f,m?m.type:i.node(o+1).type)},t.dropPoint=function(e,t,n){var r=e.resolve(t);if(!n.content.size)return t;for(var i=n.content,o=0;o=0;s--){var u=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(u>0?1:0),c=r.node(s),d=!1;if(1==a)d=c.canReplace(l,l,i);else{var h=c.contentMatchAt(l).findWrapping(i.firstChild.type);d=h&&c.canReplaceWith(l,l,h[0])}if(d)return 0==u?r.pos:u<0?r.before(s+1):r.after(s+1)}return null},t.findWrapping=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=function(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;var a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}(e,t),o=i&&function(e,t){var n=e.parent,r=e.startIndex,i=e.endIndex,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;for(var s=(a.length?a[a.length-1]:t).contentMatch,u=r;s&&u2&&void 0!==arguments[2]?arguments[2]:-1,r=e.resolve(t),i=r.depth;;i--){var o=void 0,a=void 0,s=r.index(i);if(i==r.depth?(o=r.nodeBefore,a=r.nodeAfter):n>0?(o=r.node(i+1),s++,a=r.node(i).maybeChild(s)):(o=r.node(i).maybeChild(s-1),a=r.node(i+1)),o&&!o.isTextblock&&A(o,a)&&r.node(i).canReplace(s,s+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}},t.liftTarget=function(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var r=e.$from.node(n),i=e.$from.index(n),o=e.$to.indexAfter(n);if(n",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},i="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),o="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),a="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),u="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=i&&(s||57>+i[1])||a&&s,c=0;c<10;c++)n[48+c]=n[96+c]=String(c);for(var c=1;c<=24;c++)n[c+111]="F"+c;for(var c=65;c<=90;c++)n[c]=String.fromCharCode(c+32),r[c]=String.fromCharCode(c);for(var d in n)r.hasOwnProperty(d)||(r[d]=n[d]);t.base=n,t.keyName=function(e){var t=!(l&&(e.ctrlKey||e.altKey||e.metaKey)||(o||u)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?r:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t},t.shift=r},15397:function(e,t,n){"use strict";n.d(t,{$O:function(){return f},E_:function(){return m},RC:function(){return function e(t,n,r){return!!(0,o.s)(n)&&(y(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if((0,i.My)(t)&&(0,a.LZ)(t,r)){var o=(0,i.u2)(t);return u.call(n,o)&&(!t.selectionSet||e(t.selectionSet,n[o],r))}return!0}))}},RI:function(){return u},ig:function(){return v},j:function(){return g},jS:function(){return d},jp:function(){return p},kJ:function(){return y},lg:function(){return h},uG:function(){return l}});var r=n(9428),i=n(72),o=n(45931),a=n(9572),s=n(34529),u=Object.prototype.hasOwnProperty;function l(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var c={dataIdFromObject:l,addTypename:!0,resultCaching:!0,canonizeResults:!1};function d(e){return(0,r.o)(c,e)}function h(e){var t=e.canonizeResults;return void 0===t?c.canonizeResults:t}function p(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var f=/^[_a-z][_0-9a-z]*/i;function m(e){var t=e.match(f);return t?t[0]:e}function g(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!y(e)}function v(){return new s.w0}var y=function(e){return Array.isArray(e)}},78405:function(e,t,n){"use strict";n.d(t,{h:function(){return el}});var r,i,o=n(60162),a=n(60228),s=n(88438),u=n(38229),l=n(18001),c=function(){function e(){this.getFragmentDoc=(0,s.re)(l.Yk)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,o._T)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}(),d=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r},h=n(72),p=n(77488),f=n(43869),m=n(9428),g=n(86607),v=n(34529),y=n(9572),b=n(23180),w=n(45931),k=n(3985),x=n(15397),_=Object.create(null),S=function(){return _},E=Object.create(null),D=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,b.J)((0,h.Yk)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,h.Yk)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,h.kQ)(e);if((0,h.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,h.kQ)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),x.RI.call(this.data,e)){var n=this.data[e];if(n&&x.RI.call(n,t))return n[t]}return"__typename"===t&&x.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof O?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),x.RI.call(this.data,e))?this.data[e]:this instanceof O?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,h.Yk)(e)&&(e=e.__ref),(0,h.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?(0,a.kG)("string"==typeof n,"store.merge expects a string ID"):(0,a.kG)("string"==typeof n,1);var s=new v.w0(A).merge(i,o);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=(0,x.E_)(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||r instanceof O||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,s=!0,u={DELETE:_,INVALIDATE:E,isReference:h.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,h.kQ)(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(l){var c=(0,x.E_)(l),d=r[l];if(void 0!==d){var h="function"==typeof t?t:t[l]||t[c];if(h){var p=h===S?_:h((0,b.J)(d),(0,o.pi)((0,o.pi)({},u),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));p===E?n.group.dirty(e,l):(p===_&&(p=void 0),p!==d&&(i[l]=p,a=!0,d=p))}void 0!==d&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof O?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=S,r):S)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(x.RI.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof O&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){x.RI.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&x.RI.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,o._T)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof O?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){x.RI.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof O;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!x.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){(0,h.Yk)(e)&&(t[e.__ref]=!0),(0,w.s)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,w.s)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),C=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new k.B(f.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=(0,x.E_)(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function j(e,t){P(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new C(void 0===r||r))||this;return o.stump=new T(o),o.storageTrie=new k.B(f.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(r=D||(D={})),r.Root=i;var O=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,u.D)(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return x.RI.call(this.data,t)?(0,o.pi)((0,o.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(D),T=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new C(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(O);function A(e,t,n){var r=e[n],i=t[n];return(0,u.D)(r,i)?r:i}function P(e){return!!(e instanceof D&&e.group.caching)}var R=n(51420);function M(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var F=function(){function e(e){var t=this;this.knownResults=new(f.mr?WeakMap:Map),this.config=(0,m.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,x.lg)(e)}),this.canon=e.canon||new R.h,this.executeSelectionSet=(0,s.re)(function(e){var n,r=e.context.canonizeResults,i=M(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(j(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:M,makeCacheKey:function(e,t,n,r){if(P(n.store))return n.store.makeCacheKey(e,(0,h.Yk)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return j(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(P(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new R.h},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,p=this.config.cache.policies;a=(0,o.pi)((0,o.pi)({},(0,g.O4)((0,g.iW)(r))),a);var f=(0,h.kQ)(void 0===i?"ROOT_QUERY":i),m=this.executeSelectionSet({selectionSet:(0,g.p$)(r).selectionSet,objectOrReference:f,enclosingRef:f,context:{store:n,query:r,policies:p,variables:a,varString:(0,R.B)(a),canonizeResults:c,fragmentMap:(0,l.F)((0,g.kU)(r))}});if(m.missing&&(t=[new d(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(m.missing),m.missing,r,a)],!(void 0===s||s)))throw t[0];return{result:m.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(P(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,h.Yk)(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,u=a.policies,c=a.store.getFieldValue(i,"__typename"),d=[],f=new v.w0;function m(e,n){var r;return e.missing&&(t=f.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&d.push({__typename:c});var g=new Set(r.selections);g.forEach(function(e){var r,v;if((0,y.LZ)(e,s)){if((0,h.My)(e)){var b=u.readField({fieldName:e.name.value,field:e,variables:a.variables,from:i},a),w=(0,h.u2)(e);void 0===b?p.Gw.added(e)||(t=f.merge(t,((r={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):(0,x.kJ)(b)?b=m(n.executeSubSelectedArray({field:e,array:b,enclosingRef:o,context:a}),w):e.selectionSet?null!=b&&(b=m(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:b,enclosingRef:(0,h.Yk)(b)?b:o,context:a}),w)):a.canonizeResults&&(b=n.canon.pass(b)),void 0!==b&&d.push(((v={})[w]=b,v))}else{var k=(0,l.hi)(e,a.fragmentMap);k&&u.fragmentMatches(k,c)&&k.selectionSet.selections.forEach(g.add,g)}}});var w={result:(0,v.bw)(d),missing:t},k=a.canonizeResults?this.canon.admit(w):(0,b.J)(w);return k.result&&this.knownResults.set(k.result,r),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,s=e.context,u=new v.w0;function l(e,n){var r;return e.missing&&(t=u.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,x.kJ)(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:s}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,h.Yk)(e)?e:o,context:s}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,w.s)(n)&&(__DEV__?(0,a.kG)(!(0,h.Yk)(n),"Missing selection set for object of type ".concat((0,x.jp)(e,n)," returned for query field ").concat(t.name.value)):(0,a.kG)(!(0,h.Yk)(n),5),Object.values(n).forEach(r.add,r))})}}(s.store,r,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),N=n(89732),I=n(43056),L=n(99635),B=n(17600),z=Object.create(null);function U(e){var t=JSON.stringify(e);return z[t]||(z[t]=Object.create(null))}function q(e){var t=U(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=H(e,function(e){var i=V(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&x.RI.call(t,e[0])&&(i=V(t,e,W)),__DEV__?(0,a.kG)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.kG)(void 0!==i,2),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function $(e){var t=U(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=JSON.stringify(H(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&(0,I.O)(r.directives)){var a=n.slice(1),s=r.directives.find(function(e){return e.name.value===a}),u=s&&(0,h.NC)(s,i);return u&&V(u,e.slice(1))}return}if("$"===o){var l=n.slice(1);if(i&&x.RI.call(i,l)){var c=e.slice(0);return c[0]=l,V(i,c)}return}if(t)return V(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function H(e,t){var n=new v.w0;return(function e(t){var n=U(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){(0,x.kJ)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,x.kJ)(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function W(e,t){return e[t]}function V(e,t,n){return n=n||W,function e(t){return(0,w.s)(t)?(0,x.kJ)(t)?t.map(e):H(Object.keys(t).sort(),function(e){return V(t,e)}):t}(t.reduce(function e(t,r){return(0,x.kJ)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function G(e){return void 0!==e.args?e.args:e.field?(0,h.NC)(e.field,e.variables):null}h.PT.setStringify(R.B);var Y=function(){},Z=function(e,t){return t.fieldName},K=function(e,t,n){return(0,n.mergeObjects)(e,t)},J=function(e,t){return t},X=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:x.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r,i=this,a=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=ee(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),l=a&&this.getTypePolicy(a),c=l&&l.keyFn||this.config.dataIdFromObject;c;){var d=c(e,u);if((0,x.kJ)(d))c=q(d);else{r=d;break}}return r=r?String(r):void 0,u.keyObject?[r,u.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,a=r.mutationType,s=r.subscriptionType,u=(0,o._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),x.RI.call(t.toBeAdded,n)?t.toBeAdded[n].push(u):t.toBeAdded[n]=[u]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?K:!1===t?J:e.merge}a(r,t.merge),r.keyFn=!1===i?Y:(0,x.kJ)(i)?q(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,l=i.merge;r.keyFn=!1===s?Z:(0,x.kJ)(s)?$(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||Z)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?(0,a.kG)(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.kG)(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(x.$O);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!x.RI.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,(0,o._T)(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),u=[s],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},c=!!(n&&this.fuzzySubtypes.size),d=!1,h=0;h1?l:t}:(s=(0,o.pi)({},u),x.RI.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&a.kG.warn("Undefined 'from' passed to readField with arguments ".concat((r=Array.from(e),i=(0,L.X)("stringifyForDisplay"),JSON.stringify(r,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("")))),void 0===s.variables&&(s.variables=n),s}function et(e){return function(t,n){if((0,x.kJ)(t)||(0,x.kJ)(n))throw __DEV__?new a.ej("Cannot automatically merge arrays"):new a.ej(4);if((0,w.s)(t)&&(0,w.s)(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if((0,h.Yk)(t)&&(0,x.j)(n))return e.merge(t.__ref,n),t;if((0,x.j)(t)&&(0,h.Yk)(n))return e.merge(t,n.__ref),n;if((0,x.j)(t)&&(0,x.j)(n))return(0,o.pi)((0,o.pi)({},t),n)}return n}}function en(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:n})),i}var er=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,s=t.dataId,c=t.variables,d=t.overwrite,p=(0,g.$H)(r),f=(0,x.ig)();c=(0,o.pi)((0,o.pi)({},(0,g.O4)(p)),c);var m={store:e,written:Object.create(null),merge:function(e,t){return f.merge(e,t)},variables:c,varString:(0,R.B)(c),fragmentMap:(0,l.F)((0,g.kU)(r)),overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},v=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:m});if(!(0,h.Yk)(v))throw __DEV__?new a.ej("Could not identify object ".concat(JSON.stringify(i))):new a.ej(6);return m.incomingById.forEach(function(t,r){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,l=(0,h.kQ)(r);if(o&&o.map.size){var c=n.applyMerges(o,l,i,m);if((0,h.Yk)(c))return;i=c}if(__DEV__&&!m.overwrite){var d=Object.create(null);s.forEach(function(e){e.selectionSet&&(d[e.name.value]=!0)});var p=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==d[(0,x.E_)(e)]||p(e)||function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||(0,h.Yk)(o)||(0,u.D)(o,s)||Object.keys(o).every(function(e){return void 0!==r.getFieldValue(s,e)}))){var l=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),c=(0,x.E_)(n),d="".concat(l,".").concat(c);if(!eu.has(d)){eu.add(d);var p=[];(0,x.kJ)(o)||(0,x.kJ)(s)||[o,s].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),__DEV__&&a.kG.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(l," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(d," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(l,i,e,m.store)})}e.merge(r,i)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,s=e.context,u=e.mergeTree,l=this.cache.policies,c=Object.create(null),d=n&&l.rootTypenamesById[n]||(0,h.qw)(r,i,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof d&&(c.__typename=d);var f=function(){var e=ee(arguments,c,s.variables);if((0,h.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=l.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return l.readField(e,s)},m=new Set;this.flattenFields(i,r,s,d).forEach(function(e,n){var i,o=r[(0,h.u2)(n)];if(m.add(n),void 0!==o){var s=l.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),g=eo(u,s),v=t.processFieldValue(o,n,n.selectionSet?en(e,!1,!1):e,g),y=void 0;n.selectionSet&&((0,h.Yk)(v)||(0,x.j)(v))&&(y=f("__typename",v));var b=l.getMergeFunction(d,n.name.value,y);b?g.info={field:n,typename:d,merge:b}:es(u,s),c=e.merge(c,((i={})[s]=v,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!p.Gw.added(n)&&!l.getReadFunction(d,n.name.value)&&__DEV__&&a.kG.error("Missing field '".concat((0,h.u2)(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))});try{var g=l.identify(r,{typename:d,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:c,readField:f}),v=g[0],y=g[1];n=n||v,y&&(c=s.merge(c,y))}catch(e){if(!n)throw e}if("string"==typeof n){var b=(0,h.kQ)(n),w=s.written[n]||(s.written[n]=[]);if(w.indexOf(i)>=0||(w.push(i),this.reader&&this.reader.isFresh(r,b,i,s)))return b;var k=s.incomingById.get(n);return k?(k.storeObject=s.merge(k.storeObject,c),k.mergeTree=function e(t,n){if(t===n||!n||ea(n))return t;if(!t||ea(t))return n;var r=t.info&&n.info?(0,o.pi)((0,o.pi)({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,a={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var s=new Set(n.map.keys());t.map.forEach(function(t,r){a.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))})}return a}(k.mergeTree,u),m.forEach(function(e){return k.fieldNodeSet.add(e)})):s.incomingById.set(n,{storeObject:c,mergeTree:ea(u)?void 0:u,fieldNodeSet:m}),b}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,x.kJ)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,eo(r,o));return es(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?(0,N.X)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,h.qw)(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new k.B(!1);return function e(s,u){var c=a.lookup(s,u.clientOnly,u.deferred);c.visited||(c.visited=!0,s.selections.forEach(function(a){if((0,y.LZ)(a,n.variables)){var s=u.clientOnly,c=u.deferred;if(!(s&&c)&&(0,I.O)(a.directives)&&a.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=(0,h.NC)(e,n.variables);r&&!1===r.if||(c=!0)}}),(0,h.My)(a)){var d=i.get(a);d&&(s=s&&d.clientOnly,c=c&&d.deferred),i.set(a,en(n,s,c))}else{var p=(0,l.hi)(a,n.fragmentMap);p&&o.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,en(n,s,c))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var s=this;if(e.map.size&&!(0,h.Yk)(n)){var u,l,c=!(0,x.kJ)(n)&&((0,h.Yk)(t)||(0,x.j)(t))?t:void 0,d=n;c&&!i&&(i=[(0,h.Yk)(c)?c.__ref:c]);var p=function(e,t){return(0,x.kJ)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=p(c,t),o=p(d,t);if(void 0!==o){i&&i.push(t);var u=s.applyMerges(e,n,o,r,i);u!==o&&(l=l||new Map).set(t,u),i&&(0,a.kG)(i.pop()===t)}}),l&&(n=(0,x.kJ)(d)?d.slice(0):(0,o.pi)({},d),l.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(u=r.store).getStorage.apply(u,i)):n},e}(),ei=[];function eo(e,t){var n=e.map;return n.has(t)||n.set(t,ei.pop()||{map:new Map}),n.get(t)}function ea(e){return!e||!(e.info||e.map.size)}function es(e,t){var n=e.map,r=n.get(t);r&&ea(r)&&(ei.push(r),n.delete(t))}var eu=new Set,el=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=B.QS,n.txCount=0,n.config=(0,x.jS)(t),n.addTypename=!!n.config.addTypename,n.policies=new X({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new D.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader;this.storeWriter=new er(this,this.storeReader=new F({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,x.lg)(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=(0,s.re)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(P(n)){var r=e.optimistic,i=e.rootId,o=e.variables;return n.makeCacheKey(e.query,e.callback,(0,R.B)({optimistic:r,rootId:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof d)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(x.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,B._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,B.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){R.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(x.RI.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),R.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,B.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,l=function(e){var i=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},c=new Set;return u&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&c.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var n=u.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,p.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,u.D)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(c)},51420:function(e,t,n){"use strict";n.d(t,{B:function(){return d},h:function(){return c}});var r,i,o=n(60162);n(60228);var a=n(3985),s=n(45931),u=n(43869),l=n(15397),c=function(){function e(){this.known=new(u.sy?WeakSet:Set),this.pool=new a.B(u.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,l.kJ)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return!i.array&&(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],u=this.sortedKeys(e);a.push(u.json);var l=a.length;u.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),u.sorted.forEach(function(e,t){c[e]=a[l+t]}),__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),d=Object.assign(function(e){if((0,s.s)(e)){void 0===r&&h();var t=r.admit(e),n=i.get(t);return void 0===n&&i.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:h});function h(){r=new c,i=new(u.mr?WeakMap:Map)}},17600:function(e,t,n){"use strict";n.d(t,{QS:function(){return l},_v:function(){return u},ab:function(){return i},li:function(){return s}});var r=n(88438),i=new(n(62139)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function l(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(r),e.broadcastWatches&&e.broadcastWatches()});var u=Array.from(n);n.clear(),u.forEach(function(t){return t(e)})}}else{var l=i.getValue();l&&(o(l),a(l).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}},42750:function(e,t,n){"use strict";n.d(t,{f:function(){return K}});var r=n(60162),i=n(60228),o=n(33957),a=o.i.execute,s=n(81387),u=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(0,s.L)(t).request)||this;return n.options=t,n}return(0,r.ZT)(t,e),t}(o.i),l=n(38229),c=n(51420),d=n(43869),h=n(12129);function p(e,t,n){return new h.y(function(r){var i=r.next,o=r.error,a=r.complete,s=0,u=!1,l={then:function(e){return new Promise(function(t){return t(e())})}};function c(e,t){return e?function(t){++s;var n=function(){return e(t)};l=l.then(n,n).then(function(e){--s,i&&i.call(r,e),u&&d.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var d={next:c(t,i),error:c(n,o),complete:function(){u=!0,!s&&a&&a.call(r)}},h=e.subscribe(d);return function(){return h.unsubscribe()}})}function f(e){return e.errors&&e.errors.length>0||!1}var m=n(86607),g=n(77488),v=n(9572),y=n(72),b=n(45931),w=n(99635);function k(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function x(e){function t(t){Object.defineProperty(e,t,{value:h.y})}return d.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function _(e){return e&&"function"==typeof e.then}var S=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],k(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),k(n.observers,"error",e))},complete:function(){var e=n.sub;if(null!==e){var t=n.sources.shift();t?_(t)?t.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=t.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),k(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new h.y(t)]),_(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){!this.observers.has(e)&&(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.complete()},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},o=this.addCount;this.addObserver(i),this.addCount=o},t}(h.y);x(S);var E=n(43056),D=n(45832),C=n(64368),j=n(89732),O=n(9428),T=Object.assign,A=Object.hasOwnProperty,P=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=M)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.isTornDown=!1;var s=n.defaultOptions.watchQuery,u=(void 0===s?{}:s).fetchPolicy,l=void 0===u?"cache-first":u,c=o.fetchPolicy,d=void 0===c?l:c,h=o.initialFetchPolicy,p=void 0===h?"standby"===d?l:d:h;a.options=(0,r.pi)((0,r.pi)({},o),{initialFetchPolicy:p,fetchPolicy:d}),a.queryId=i.queryId||n.generateQueryId();var f=(0,m.$H)(a.query);return a.queryName=f&&f.name&&f.name.value,a}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||C.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,C.O)(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,l.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===C.I.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=C.I.ready,i.loading=!1)):i.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||F(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!(0,l.D)(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,l.D)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?n.fetchPolicy=o:"no-cache"===o?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",__DEV__&&e&&A.call(e,"variables")){var a=(0,m.iW)(this.query),s=a.variableDefinitions;(!s||!s.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&i.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=a.name)||void 0===t?void 0:t.value)||JSON.stringify(a),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,l.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,C.I.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},this.options),{query:this.query}),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId(),o=this.queryInfo,a=o.networkStatus;o.networkStatus=C.I.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,n,C.I.fetchMore).then(function(r){return t.queryManager.removeQuery(i),o.networkStatus===C.I.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:r.data,variables:n.variables})}):i.writeQuery({query:n.query,variables:n.variables,data:r.data})},onWatchUpdated:function(e){s.add(e.query)}}),r}).finally(function(){s.has(t.query)||R(t)})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&i.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,l.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},C.I.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){__DEV__?(0,i.kG)(n,"Attempted to start a polling query without a polling interval."):(0,i.kG)(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&((0,C.O)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"network-only"},C.I.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,r.pi)((0,r.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,j.X)(e),variables:t}),(0,E.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var i=t===C.I.refetch||t===C.I.fetchMore||t===C.I.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,O.o)(this.options,e||{}),u=i?s:T(this.options,s);!i&&(this.updatePolling(),e&&e.variables&&!(0,l.D)(e.variables,o)&&"standby"!==u.fetchPolicy&&u.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=C.I.setVariables)));var c=u.variables&&(0,r.pi)({},u.variables),d=this.fetch(u,t),h={next:function(e){n.reportResult(e,c)},error:function(e){n.reportError(e,c)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=h),d.addObserver(h),d.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),k(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=(0,r.pi)((0,r.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:C.I.error,loading:!1});this.updateLastResult(n,t),k(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(h.y);function R(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function M(e){__DEV__&&i.kG.error("Unhandled error",e.message,e.stack)}function F(e){__DEV__&&e&&__DEV__&&i.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}x(P);var N=n(58867),I=n(34529),L=n(18001),B=n(17600),z=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,I.Ee)(t.resolvers,e)}):this.resolvers=(0,I.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,v.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,g.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)})]:[2,(0,r.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,N.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return N.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,g.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,a){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.mG)(this,void 0,void 0,function(){var s,u,l,c,d,h,p,f,g;return(0,r.Jh)(this,function(v){return s=(0,m.p$)(e),u=(0,m.kU)(e),l=(0,L.F)(u),d=(c=s.operation)?c.charAt(0).toUpperCase()+c.slice(1):"Query",h=this,p=h.cache,f=h.client,g={fragmentMap:l,context:(0,r.pi)((0,r.pi)({},n),{cache:p,client:f}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n){return(0,r.mG)(this,void 0,void 0,function(){var o,a,s,u,l,c=this;return(0,r.Jh)(this,function(d){return o=n.fragmentMap,a=n.context,s=n.variables,u=[t],l=function(e){return(0,r.mG)(c,void 0,void 0,function(){var l,c;return(0,r.Jh)(this,function(r){return(0,v.LZ)(e,s)?(0,y.My)(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&u.push(((n={})[(0,y.u2)(e)]=t,n))})]:((0,y.Ao)(e)?l=e:(l=o[e.name.value],__DEV__?(0,i.kG)(l,"No fragment named ".concat(e.name.value)):(0,i.kG)(l,9)),l&&l.typeCondition&&(c=l.typeCondition.name.value,n.fragmentMatcher(t,c,a)))?[2,this.resolveSelectionSet(l.selectionSet,t,n).then(function(e){u.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,I.bw)(u)})]})})},e.prototype.resolveField=function(e,t,n){return(0,r.mG)(this,void 0,void 0,function(){var i,o,a,s,u,l,c,d,h,p=this;return(0,r.Jh)(this,function(r){return i=n.variables,s=(o=e.name.value)!==(a=(0,y.u2)(e)),l=Promise.resolve(u=t[a]||t[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(c=t.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[c])&&(h=d[s?o:a])&&(l=Promise.resolve(B.ab.withValue(this.cache,h,[t,(0,y.NC)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(t){return(void 0===t&&(t=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t)?Array.isArray(t)?p.resolveSubSelectedArray(e,t,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t,n):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0}))},e}(),U=new(d.mr?WeakMap:Map);function q(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return U.set(e,(U.get(e)+1)%1e15),n.apply(this,arguments)})}function $(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var H=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;U.has(n)||(U.set(n,0),q(n,"evict"),q(n,"modify"),q(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||C.I.loading;return this.variables&&this.networkStatus!==C.I.loading&&!(0,l.D)(this.variables,e.variables)&&(t=C.I.setVariables),(0,l.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){$(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,l.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,l.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():R(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;$(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,C.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.pi)((0,r.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,l.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===U.get(this.cache)&&(0,l.D)(t,n.variables)&&(0,l.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=(0,E.O)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(W(e,t.errorPolicy)?this.cache.performTransaction(function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:U.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete){e.data=r.lastDiff.diff.result;return}var o=r.getDiffOptions(t.variables),a=i.diff(o);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(a,o),a.complete&&(e.data=a.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=C.I.ready},e.prototype.markError=function(e){return this.networkStatus=C.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function W(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!f(e);return!r&&n&&e.data&&(r=!0),r}var V=Object.prototype.hasOwnProperty,G=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,u=e.localState,l=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=u||new z({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!l,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new i.ej("QueryManager stopped while query was in flight"):new i.ej(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,o=e.mutation,a=e.variables,s=e.optimisticResponse,u=e.updateQueries,l=e.refetchQueries,c=void 0===l?[]:l,d=e.awaitRefetchQueries,h=void 0!==d&&d,m=e.update,g=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,w=void 0===b?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":b,k=e.keepRootFields,x=e.context;return(0,r.mG)(this,void 0,void 0,function(){var e,t,n;return(0,r.Jh)(this,function(l){switch(l.label){case 0:if(__DEV__?(0,i.kG)(o,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,i.kG)(o,12),__DEV__?(0,i.kG)("network-only"===y||"no-cache"===y,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,i.kG)("network-only"===y||"no-cache"===y,13),e=this.generateMutationId(),o=this.transform(o).document,a=this.getVariables(o,a),!this.transform(o).hasClientExports)return[3,2];return[4,this.localState.addExportedVariables(o,a,x)];case 1:a=l.sent(),l.label=2;case 2:return t=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:y,errorPolicy:w,context:x,updateQueries:u,update:m,keepRootFields:k}),this.broadcastQueries(),n=this,[2,new Promise(function(i,l){return p(n.getObservableFromLink(o,(0,r.pi)((0,r.pi)({},x),{optimisticResponse:s}),a,!1),function(i){if(f(i)&&"none"===w)throw new D.c({graphQLErrors:i.errors});t&&(t.loading=!1,t.error=null);var l=(0,r.pi)({},i);return"function"==typeof c&&(c=c(l)),"ignore"===w&&f(l)&&delete l.errors,n.markMutationResult({mutationId:e,result:l,document:o,variables:a,fetchPolicy:y,errorPolicy:w,context:x,update:m,updateQueries:u,awaitRefetchQueries:h,refetchQueries:c,removeOptimistic:s?e:void 0,onQueryUpdated:g,keepRootFields:k})}).subscribe({next:function(e){n.broadcastQueries(),i(e)},error:function(r){t&&(t.loading=!1,t.error=r),s&&n.cache.removeOptimistic(e),n.broadcastQueries(),l(r instanceof D.c?r:new D.c({networkError:r}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&W(i,e.errorPolicy)){o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var s=e.updateQueries;s&&this.queries.forEach(function(e,r){var a=e.observableQuery,u=a&&a.queryName;if(u&&V.call(s,u)){var l=s[u],c=n.queries.get(r),d=c.document,h=c.variables,p=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),f=p.result;if(p.complete&&f){var g=l(f,{mutationResult:i,queryName:d&&(0,m.rY)(d)||void 0,queryVariables:h});g&&o.push({result:g,dataId:"ROOT_QUERY",query:d,variables:h})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&(i=(0,r.pi)((0,r.pi)({},i),{data:u.result}))}s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return u.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(e){__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),i=(0,g.Fo)(this.cache.transformForLink(n)),o=this.localState.clientQuery(n),a=i&&this.localState.serverQuery(i),s={document:n,hasClientExports:(0,v.mj)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:(0,m.O4)((0,m.$H)(n)),asQuery:(0,r.pi)((0,r.pi)({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.pi)((0,r.pi)({},e),{operation:"query"}):e})})},u=function(e){e&&!t.has(e)&&t.set(e,s)};u(e),u(n),u(o),u(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new H(this),n=new P({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,i.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,i.kG)(e.query,14),__DEV__?(0,i.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,i.kG)("Document"===e.query.kind,15),__DEV__?(0,i.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,i.kG)(!e.returnPartialData,16),__DEV__?(0,i.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,i.kG)(!e.pollInterval,17),this.fetchQuery(t,e).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new i.ej("Store reset while query was in flight (not completed in link chain)"):new i.ej(18)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=C.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,y.JW)(e)?o.set(t.transform(e).document,!1):(0,b.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e){n.set(r,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,w.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new P({queryManager:t,queryInfo:a,options:(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.set(o,s)}),__DEV__&&o.size&&o.forEach(function(e,t){!e&&__DEV__&&i.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,s,e).map(function(o){if("no-cache"!==r&&(W(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),f(o))throw new D.c({graphQLErrors:o.errors});return o})};if(this.transform(n).hasClientExports){var l=this.localState.addExportedVariables(n,o,s).then(u);return new h.y(function(e){var t=null;return l.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var o,s,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var d=this.inFlightLinkObservables,f=this.link,g={query:l,variables:n,operationName:(0,m.rY)(l)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!i}))};if(t=g.context,i){var v=d.get(l)||new Map;d.set(l,v);var y=(0,c.B)(n);if(!(s=v.get(y))){var b=new S([a(f,g)]);v.set(y,s=b),b.cleanup(function(){v.delete(y)&&v.size<1&&d.delete(l)})}}else s=new S([a(f,g)])}else s=new S([h.y.of({data:{}})]),t=this.prepareContext(t);var w=this.transform(e).clientQuery;return w&&(s=p(s,function(e){return u.localState.runResolvers({document:w,remoteResult:e,context:t,variables:n})})),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return p(this.getObservableFromLink(e.document,n.context,n.variables),function(i){var o=(0,E.O)(i.errors);if(r>=e.lastRequestId){if(o&&"none"===n.errorPolicy)throw e.markError(new D.c({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var a={data:i.data,loading:!1,networkStatus:C.I.ready};return o&&"ignore"!==n.errorPolicy&&(a.errors=i.errors,a.networkStatus=C.I.error),a},function(t){var n=(0,D.M)(t)?t:new D.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=C.I.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),a=this.getQuery(e),s=this.defaultOptions.watchQuery,u=t.fetchPolicy,l=void 0===u?s&&s.fetchPolicy||"cache-first":u,c=t.errorPolicy,d=void 0===c?s&&s.errorPolicy||"none":c,h=t.returnPartialData,p=t.notifyOnNetworkStatusChange,f=t.context,m=Object.assign({},t,{query:i,variables:o,fetchPolicy:l,errorPolicy:d,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==p&&p,context:void 0===f?{}:f}),g=function(e){m.variables=e;var i=r.fetchQueryByPolicy(a,m,n);return"standby"!==m.fetchPolicy&&i.length>0&&a.observableQuery&&a.observableQuery.applyNextFetchPolicy("after-fetch",t),i},v=function(){return r.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(e){v(),setTimeout(function(){return y.cancel(e)})});var y=new S(this.transform(m.query).hasClientExports?this.localState.addExportedVariables(m.query,m.variables,m.context).then(g):g(m.variables));return y.promise.then(v,v),y},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,w.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var c=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof H&&e.watcher.observableQuery;if(r){if(u){l.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),i}null!==u&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,p=t.context,f=t.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:this.transform(o).document,variables:a,networkStatus:n});var g=function(){return e.getDiff(a)},v=function(t,n){void 0===n&&(n=e.networkStatus||C.I.loading);var s=t.result;!__DEV__||d||(0,l.D)(s,{})||F(t.missing);var u=function(e){return h.y.of((0,r.pi)({data:e,loading:(0,C.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):u(s)},y="no-cache"===s?0:n===C.I.refetch&&"merge"!==u?1:2,b=function(){return i.getResultsFromLink(e,y,{variables:a,context:p,fetchPolicy:s,errorPolicy:c})},w=f&&"number"==typeof m&&m!==n&&(0,C.O)(n);switch(s){default:case"cache-first":var k=g();if(k.complete)return[v(k,e.markReady())];if(d||w)return[v(k),b()];return[b()];case"cache-and-network":var k=g();if(k.complete||d||w)return[v(k),b()];return[b()];case"cache-only":return[v(g(),e.markReady())];case"network-only":if(w)return[v(g()),b()];return[b()];case"no-cache":if(w)return[v(e.getDiff()),b()];return[b()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new H(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),Y=n(58769),Z=!1,K=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,a=e.headers,s=e.cache,l=e.ssrMode,c=void 0!==l&&l,d=e.ssrForceFetchDelay,h=void 0===d?0:d,p=e.connectToDevTools,f=void 0===p?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:p,m=e.queryDeduplication,g=void 0===m||m,v=e.defaultOptions,y=e.assumeImmutableResults,b=e.resolvers,w=e.typeDefs,k=e.fragmentMatcher,x=e.name,_=e.version,S=e.link;if(S||(S=n?new u({uri:n,credentials:r,headers:a}):o.i.empty()),!s)throw __DEV__?new i.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new i.ej(7);if(this.link=S,this.cache=s,this.disableNetworkFetches=c||h>0,this.queryDeduplication=g,this.defaultOptions=v||Object.create(null),this.typeDefs=w,h&&setTimeout(function(){return t.disableNetworkFetches=!1},h),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Z&&__DEV__&&(Z=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var E=window.navigator,D=E&&E.userAgent,C=void 0;"string"==typeof D&&(D.indexOf("Chrome/")>-1?C="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":D.indexOf("Firefox/")>-1&&(C="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),C&&__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: "+C)}this.version="3.6.9",this.localState=new z({cache:s,client:this,resolvers:b,fragmentMatcher:k}),this.queryManager=new G({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:g,ssrMode:c,clientAwareness:{name:x,version:_},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,Y.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,Y.J)(this.defaultOptions.query,e)),__DEV__?(0,i.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,i.kG)("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,Y.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(e){__DEV__&&i.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},64368:function(e,t,n){"use strict";var r,i;function o(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return o}}),(i=r||(r={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},45832:function(e,t,n){"use strict";n.d(t,{M:function(){return o},c:function(){return s}});var r=n(60162);n(60228);var i=n(43056);function o(e){return e.hasOwnProperty("graphQLErrors")}var a=function(e){var t="";return((0,i.O)(e.graphQLErrors)||(0,i.O)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){var n=e?e.message:"Error message not found.";t+="".concat(n,"\n")}),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")},s=function(e){function t(n){var r=n.graphQLErrors,i=n.clientErrors,o=n.networkError,s=n.errorMessage,u=n.extraInfo,l=e.call(this,s)||this;return l.graphQLErrors=r||[],l.clientErrors=i||[],l.networkError=o||null,l.message=s||a(l),l.extraInfo=u,l.__proto__=t.prototype,l}return(0,r.ZT)(t,e),t}(Error)},33957:function(e,t,n){"use strict";n.d(t,{i:function(){return d}});var r=n(60162),i=n(60228),o=n(12129),a=n(86607);function s(e,t){return t?t(e):o.y.of()}function u(e){return"function"==typeof e?new d(e):e}function l(e){return e.request.length<=1}var c=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return(0,r.ZT)(t,e),t}(Error),d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=u(n),a=u(r||new e(s));return new e(l(i)&&l(a)?function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()}:function(e,n){return t(e)?i.request(e,n)||o.y.of():a.request(e,n)||o.y.of()})},e.execute=function(e,t){var n,s,u,l;return e.request((u=t.context,(s={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);nt.indexOf(o))throw __DEV__?new i.ej("illegal argument: ".concat(o)):new i.ej(24)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),l=(0,r.pi)({},u),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){l="function"==typeof e?(0,r.pi)((0,r.pi)({},l),e(l)):(0,r.pi)((0,r.pi)({},l),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,r.pi)({},l)}}),s))||o.y.of()},e.concat=function(t,n){var r=u(t);if(l(r))return __DEV__&&i.kG.warn(new c("You are calling concat on a terminating link, which will have no effect",r)),r;var a=u(n);return new e(l(a)?function(e){return r.request(e,function(e){return a.request(e)||o.y.of()})||o.y.of()}:function(e,t){return r.request(e,function(e){return a.request(e,t)||o.y.of()})||o.y.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new i.ej("request is not implemented"):new i.ej(19)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},11485:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=n(33957).i.split},81387:function(e,t,n){"use strict";n.d(t,{L:function(){return C}});var r=n(60162),i=n(60228),o=n(58867),a=n(33957),s=n(12129),u=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new i.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new i.ej(21);throw r.parseError=e,r}return n},l=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},c=Object.prototype.hasOwnProperty,d=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new i.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new i.ej(20)},h=n(85717);function p(e){return(0,o.Vn)(e,{leave:f})}var f={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return g(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=y("(",g(e.variableDefinitions,", "),")"),i=g(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?g([t,g([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+y(" = ",r)+y(" ",g(i," "))},SelectionSet:function(e){return v(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=y("",t,": ")+n,s=a+y("(",g(r,", "),")");return s.length>80&&(s=a+y("(\n",b(g(r,"\n")),"\n)")),g([s,g(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+y(" ",g(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return g(["...",y("on ",t),g(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(y("(",g(r,", "),")")," ")+"on ".concat(n," ").concat(y("",g(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,h.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+g(e.values,", ")+"]"},ObjectValue:function(e){return"{"+g(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+y("(",g(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:m(function(e){var t=e.directives,n=e.operationTypes;return g(["schema",g(t," "),v(n)]," ")}),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:m(function(e){return g(["scalar",e.name,g(e.directives," ")]," ")}),ObjectTypeDefinition:m(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return g(["type",t,y("implements ",g(n," & ")),g(r," "),v(i)]," ")}),FieldDefinition:m(function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(k(n)?y("(\n",b(g(n,"\n")),"\n)"):y("(",g(n,", "),")"))+": "+r+y(" ",g(i," "))}),InputValueDefinition:m(function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return g([t+": "+n,y("= ",r),g(i," ")]," ")}),InterfaceTypeDefinition:m(function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return g(["interface",t,y("implements ",g(n," & ")),g(r," "),v(i)]," ")}),UnionTypeDefinition:m(function(e){var t=e.name,n=e.directives,r=e.types;return g(["union",t,g(n," "),r&&0!==r.length?"= "+g(r," | "):""]," ")}),EnumTypeDefinition:m(function(e){var t=e.name,n=e.directives,r=e.values;return g(["enum",t,g(n," "),v(r)]," ")}),EnumValueDefinition:m(function(e){return g([e.name,g(e.directives," ")]," ")}),InputObjectTypeDefinition:m(function(e){var t=e.name,n=e.directives,r=e.fields;return g(["input",t,g(n," "),v(r)]," ")}),DirectiveDefinition:m(function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(k(n)?y("(\n",b(g(n,"\n")),"\n)"):y("(",g(n,", "),")"))+(r?" repeatable":"")+" on "+g(i," | ")}),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return g(["extend schema",g(t," "),v(n)]," ")},ScalarTypeExtension:function(e){return g(["extend scalar",e.name,g(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return g(["extend type",t,y("implements ",g(n," & ")),g(r," "),v(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return g(["extend interface",t,y("implements ",g(n," & ")),g(r," "),v(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return g(["extend union",t,g(n," "),r&&0!==r.length?"= "+g(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return g(["extend enum",t,g(n," "),v(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return g(["extend input",t,g(n," "),v(r)]," ")}};function m(e){return function(t){return g([t.description,e(t)],"\n")}}function g(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter(function(e){return e}).join(n))&&void 0!==t?t:""}function v(e){return y("{\n",b(g(e,"\n")),"\n}")}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function b(e){return y(" ",e.replace(/\n/g,"\n "))}function w(e){return -1!==e.indexOf("\n")}function k(e){return null!=e&&e.some(w)}var x={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},_=function(e,t){return t(e)},S=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function E(e){return new s.y(function(t){t.error(e)})}var D=(0,i.wY)(function(){return fetch}),C=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,h=e.fetch,f=e.print,m=void 0===f?_:f,g=e.includeExtensions,v=e.useGETForQueries,y=e.includeUnusedVariables,b=void 0!==y&&y,w=(0,r._T)(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&d(h||D);var k={http:{includeExtensions:g},options:w.fetchOptions,credentials:w.credentials,headers:w.headers};return new a.i(function(e){var t,a,d,f=(t=e,a=n,t.getContext().uri||("function"==typeof a?a(t):a||"/graphql")),g=e.getContext(),y={};if(g.clientAwareness){var w=g.clientAwareness,_=w.name,C=w.version;_&&(y["apollographql-client-name"]=_),C&&(y["apollographql-client-version"]=C)}var j=(0,r.pi)((0,r.pi)({},y),g.headers),O=function(e,t){for(var n=[],i=2;i=300&&l(t,n,"Response not successful: Received status code ".concat(t.status)),Array.isArray(n)||c.call(n,"data")||c.call(n,"errors")||l(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}).then(function(e){return t.next(e),t.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e))}),function(){d&&d.abort()}})})}},42370:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(2784),i=n(43869).aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function o(){var e=r.createContext[i];return e||(Object.defineProperty(r.createContext,i,{value:e=r.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},55671:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(60228),i=n(2784),o=n(42370),a=function(e){var t=e.client,n=e.children,a=(0,o.K)();return i.createElement(a.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?(0,r.kG)(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):(0,r.kG)(e.client,26),i.createElement(a.Provider,{value:e},n)})}},56675:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(60228),i=n(2784),o=n(42370);function a(e){var t=(0,i.useContext)((0,o.K)()),n=e||t.client;return __DEV__?(0,r.kG)(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an , or pass an ApolloClient instance in via options.'):(0,r.kG)(!!n,29),n}},3842:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(60162),i=n(2784),o=n(58769),a=n(40794),s=n(56675),u=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function l(e,t){var n=(0,a.A)((0,s.x)(t&&t.client),e),l=(0,i.useRef)(),c=l.current?(0,o.J)(t,l.current):t,d=n.useQuery((0,r.pi)((0,r.pi)({},c),{skip:!l.current})),h=d.observable.options.initialFetchPolicy||n.getDefaultFetchPolicy(),p=Object.assign(d,{called:!!l.current}),f=(0,i.useMemo)(function(){for(var e={},t=0;t0?new u.c({graphQLErrors:l}):void 0;if(c===p.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:s,error:f,client:n};p.current.isMounted&&!(0,a.D)(p.current.result,m)&&h(p.current.result=m)}return null===(i=null===(r=p.current.options)||void 0===r?void 0:r.onCompleted)||void 0===i||i.call(r,t.data),null===(o=e.onCompleted)||void 0===o||o.call(e,t.data),t}).catch(function(t){var r,i,o,s;if(c===p.current.mutationId&&p.current.isMounted){var u={loading:!1,error:t,data:void 0,called:!0,client:n};(0,a.D)(p.current.result,u)||h(p.current.result=u)}if((null===(r=p.current.options)||void 0===r?void 0:r.onError)||d.onError)return null===(o=null===(i=p.current.options)||void 0===i?void 0:i.onError)||void 0===o||o.call(i,t),null===(s=e.onError)||void 0===s||s.call(e,t),{data:void 0,errors:t};throw t})},[]),m=(0,i.useCallback)(function(){h({called:!1,loading:!1,client:n})},[]);return(0,i.useEffect)(function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}},[]),[f,(0,r.pi)({reset:m},d)]}},40794:function(e,t,n){"use strict";n.d(t,{A:function(){return _},a:function(){return x}});var r=n(60162),i=n(60228),o=n(2784),a=n.t(o,2),s=n(43869),u=!1,l=a.useSyncExternalStore||function(e,t,n){var r=t();__DEV__&&!u&&r!==t()&&(u=!0,__DEV__&&i.kG.error("The result of getSnapshot should be cached to avoid an infinite loop"));var a=o.useState({inst:{value:r,getSnapshot:t}}),l=a[0].inst,d=a[1];return s.JC?o.useLayoutEffect(function(){Object.assign(l,{value:r,getSnapshot:t}),c(l)&&d({inst:l})},[e,r,t]):Object.assign(l,{value:r,getSnapshot:t}),o.useEffect(function(){return c(l)&&d({inst:l}),e(function(){c(l)&&d({inst:l})})},[e]),r};function c(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}var d=n(38229),h=n(58769),p=n(42370),f=n(45832),m=n(64368),g=n(87274),v=n(56675),y=n(23180),b=n(9428),w=n(43056),k=Object.prototype.hasOwnProperty;function x(e,t){return void 0===t&&(t=Object.create(null)),_((0,v.x)(t.client),e).useQuery(t)}function _(e,t){var n=(0,o.useRef)();n.current&&e===n.current.client&&t===n.current.query||(n.current=new S(e,t,n.current));var r=n.current,i=(0,o.useState)(0),a=(i[0],i[1]);return r.forceUpdate=function(){a(function(e){return e+1})},r}var S=function(){function e(e,t,n){this.client=e,this.query=t,this.asyncResolveFns=new Set,this.optionsToIgnoreOnce=new(s.sy?WeakSet:Set),this.ssrDisabledResult=(0,y.J)({loading:!0,data:void 0,error:void 0,networkStatus:m.I.loading}),this.skipStandbyResult=(0,y.J)({loading:!1,data:void 0,error:void 0,networkStatus:m.I.ready}),this.toQueryResultCache=new(s.mr?WeakMap:Map),(0,g.Vp)(t,g.n_.Query);var r=n&&n.result,i=r&&r.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&i.kG.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.asyncUpdate=function(){var e=this;return new Promise(function(t){e.asyncResolveFns.add(t),e.optionsToIgnoreOnce.add(e.watchQueryOptions),e.forceUpdate()})},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,o.useContext)((0,p.K)()).renderPromises,this.useOptions(e);var n=this.useObservableQuery(),r=l((0,o.useCallback)(function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,r=n.getCurrentResult();e&&e.loading===r.loading&&e.networkStatus===r.networkStatus&&(0,d.D)(e.data,r.data)||t.setResult(r)},r=function(o){var a=n.last;i.unsubscribe();try{n.resetLastResults(),i=n.subscribe(e,r)}finally{n.last=a}if(!k.call(o,"graphQLErrors"))throw o;var s=t.result;(!s||s&&s.loading||!(0,d.D)(o,s.error))&&t.setResult({data:s&&s.data,error:o,loading:!1,networkStatus:m.I.error})},i=n.subscribe(e,r);return function(){return i.unsubscribe()}},[n,this.renderPromises,this.client.disableNetworkFetches]),function(){return t.getCurrentResult()},function(){return t.getCurrentResult()});this.unsafeHandlePartialRefetch(r);var i=this.toQueryResult(r);return!i.loading&&this.asyncResolveFns.size&&(this.asyncResolveFns.forEach(function(e){return e(i)}),this.asyncResolveFns.clear()),i},e.prototype.useOptions=function(t){var n,r=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;(this.optionsToIgnoreOnce.has(i)||!(0,d.D)(r,i))&&(this.watchQueryOptions=r,i&&this.observable&&(this.optionsToIgnoreOnce.delete(i),this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(n=this.result)||void 0===n?void 0:n.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push((0,b.o)(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(h.J)},e.prototype.createWatchQueryOptions=function(e){void 0===e&&(e={});var t,n=e.skip,i=Object.assign((e.ssr,e.onCompleted,e.onError,e.displayName,e.defaultOptions,(0,r._T)(e,["skip","ssr","onCompleted","onError","displayName","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),n){var o=i.fetchPolicy,a=void 0===o?this.getDefaultFetchPolicy():o,s=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===s?a:s,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,o.useMemo)(function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}},[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){!e.loading&&(e.error?this.onError(e.error):e.data&&this.onCompleted(e.data))},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var n=e.data,i=(e.partial,(0,r._T)(e,["data","partial"]));return this.toQueryResultCache.set(e,t=(0,r.pi)((0,r.pi)((0,r.pi)({data:n},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&(0,w.O)(e.errors)&&(t.error=new f.c({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){e.partial&&this.queryHookOptions.partialRefetch&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(e,{loading:!0,networkStatus:m.I.refetch}),this.observable.refetch())},e}()},87274:function(e,t,n){"use strict";n.d(t,{Vp:function(){return u},n_:function(){return i}});var r,i,o=n(60228);(r=i||(i={}))[r.Query=0]="Query",r[r.Mutation=1]="Mutation",r[r.Subscription=2]="Subscription";var a=new Map;function s(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function u(e,t){var n=function(e){var t,n,r=a.get(e);if(r)return r;__DEV__?(0,o.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,o.kG)(!!e&&!!e.kind,30);for(var s=[],u=[],l=[],c=[],d=0,h=e.definitions;d0}n.d(t,{O:function(){return r}})},43869:function(e,t,n){"use strict";n.d(t,{JC:function(){return l},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var r=n(60228),i="function"==typeof WeakMap&&"ReactNative"!==(0,r.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s="function"==typeof(0,r.wY)(function(){return window.document.createElement}),u=(0,r.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,l=s&&!u},89732:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.toString;function i(e){return function e(t,n){switch(r.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),Object.keys(t).forEach(function(r){o[r]=e(t[r],n)}),o;default:return t}}(e)}},9428:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t1)for(var r=new l,i=1;i=d)return(console[e]||console.log).apply(console,arguments)}}function p(e){try{return e()}catch(e){}}(r=l||(l={})).debug=h("debug"),r.log=h("log"),r.warn=h("warn"),r.error=h("error");var f=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()}),m="__DEV__",g=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(f,m,{value:"production"!==p(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),f[m]}}(),v=n(34406);function y(e){try{return e()}catch(e){}}var b=y(function(){return globalThis})||y(function(){return window})||y(function(){return self})||y(function(){return global})||y(function(){return y.constructor("return this")()}),w=!1;!b||y(function(){return"production"})||y(function(){return v})||(Object.defineProperty(b,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),w=!0),n(75899).H,w&&(delete b.process,w=!1),__DEV__?l("boolean"==typeof g,g):l("boolean"==typeof g,36)},9572:function(e,t,n){"use strict";n.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var r=n(60228),i=n(58867);function o(e,t){var n,i=e.directives;return!i||!i.length||(n=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;__DEV__?(0,r.kG)(i&&1===i.length,"Incorrect number of arguments for the @".concat(o," directive.")):(0,r.kG)(i&&1===i.length,38);var a=i[0];__DEV__?(0,r.kG)(a.name&&"if"===a.name.value,"Invalid argument for the @".concat(o," directive.")):(0,r.kG)(a.name&&"if"===a.name.value,39);var s=a.value;__DEV__?(0,r.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(o," directive must be a variable or a boolean value.")):(0,r.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),40),n.push({directive:e,ifArgument:a})}}),n).every(function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,r.kG)(void 0!==o,"Invalid variable referenced in @".concat(n.name.value," directive.")):(0,r.kG)(void 0!==o,37)):o=i.value.value,"skip"===n.name.value?!o:o})}function a(e,t){var n;return(n=[],(0,i.Vn)(t,{Directive:function(e){n.push(e.name.value)}}),n).some(function(t){return e.indexOf(t)>-1})}function s(e){return e&&a(["client"],e)&&a(["export"],e)}},18001:function(e,t,n){"use strict";n.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var r=n(60162),i=n(60228);function o(e,t){var n=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(41);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===n&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,42),n=o[0].name.value),(0,r.pi)((0,r.pi)({},e),{definitions:(0,r.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(e.name.value,".")):(0,i.kG)(n,43),n;default:return null}}},86607:function(e,t,n){"use strict";n.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return h},iW:function(){return l},kU:function(){return u},p$:function(){return d},pD:function(){return c},rY:function(){return s}});var r=n(60228),i=n(72);function o(e){__DEV__?(0,r.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)(e&&"Document"===e.kind,44);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new r.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new r.ej(45);return e});return __DEV__?(0,r.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,r.kG)(t.length<=1,46),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function l(e){var t=a(e);return __DEV__?(0,r.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,r.kG)(t&&"query"===t.operation,47),t}function c(e){__DEV__?(0,r.kG)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,r.kG)("Document"===e.kind,48),__DEV__?(0,r.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,r.kG)(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?(0,r.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,r.kG)("FragmentDefinition"===t.kind,50),t}function d(e){o(e);for(var t,n=0,i=e.definitions;n0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===d.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(p(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,f)};function f(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function m(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return l(n,e.name,e.value,t)}),n}return null}function g(e){return e.alias?e.alias.value:e.name.value}function v(e){return"Field"===e.kind}function y(e){return"InlineFragment"===e.kind}},77488:function(e,t,n){"use strict";n.d(t,{Gw:function(){return f},aL:function(){return v},ob:function(){return y},Fo:function(){return g}});var r=n(60162),i=n(60228),o=n(58867),a=n(86607);function s(e,t,n){var r=0;return e.forEach(function(n,i){t.call(this,n,i,e)&&(e[r++]=n)},n),e.length=r,e}var u=n(72),l=n(18001),c={kind:"Field",name:{kind:"Name",value:"__typename"}};function d(e){return!function e(t,n){return t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(n[t.name.value],n)})}((0,a.$H)(e)||(0,a.pD)(e),(0,l.F)((0,a.kU)(e)))?e:null}function h(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function p(e,t){var n,i,a,l=Object.create(null),c=[],p=Object.create(null),f=[],m=d((0,o.Vn)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(l[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(h(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&c.push({name:e.value.name.value})}),t.selectionSet&&(function e(t){var n=[];return t.selections.forEach(function(t){((0,u.My)(t)||(0,u.Ao)(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return n.push(e)}):"FragmentSpread"===t.kind&&n.push(t)}),n})(t.selectionSet).forEach(function(e){f.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){p[e.name.value]=!0}},Directive:{enter:function(t){if(h(e)(t))return null}}}));return m&&s(c,function(e){return!!e.name&&!l[e.name]}).length&&(n=c,i=m,a=function(e){return n.some(function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))})},m=d((0,o.Vn)(i,{OperationDefinition:{enter:function(e){return(0,r.pi)((0,r.pi)({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(e){return!n.some(function(t){return t.name===e.variable.name.value})}):[]})}},Field:{enter:function(e){if(n.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){a(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(a(e))return null}}}))),m&&s(f,function(e){return!!e.name&&!p[e.name]}).length&&(m=function(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return d((0,o.Vn)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(f,m)),m}var f=Object.assign(function(e){return(0,o.Vn)(e,{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.My)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,r.pi)((0,r.pi)({},e),{selections:(0,r.ev)((0,r.ev)([],i,!0),[c],!1)})}}}})},{added:function(e){return e===c}}),m={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function g(e){return p([m],(0,a.A$)(e))}function v(e){return"query"===(0,a.p$)(e).operation?e:(0,o.Vn)(e,{OperationDefinition:{enter:function(e){return(0,r.pi)((0,r.pi)({},e),{operation:"query"})}}})}function y(e){(0,a.A$)(e);var t=p([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,o.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return(0,u.My)(e)&&"__typename"===e.name.value}))return null}}})),t}},90019:function(e,t,n){"use strict";n.d(t,{ZB:function(){return o}});var r=n(60162),i=n(34529);function o(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var n=t.canRead,i=t.readField;if(!e)return e;var o=[],s="",u="";e.edges.forEach(function(e){n(i("node",e))&&(o.push(e),e.cursor&&(s=s||e.cursor||"",u=e.cursor||u))});var l=e.pageInfo||{},c=l.startCursor,d=l.endCursor;return(0,r.pi)((0,r.pi)({},a(e)),{edges:o,pageInfo:(0,r.pi)((0,r.pi)({},e.pageInfo),{startCursor:c||s,endCursor:d||u})})},merge:function(e,t,n){var o=n.args,s=n.isReference,u=n.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var l=t.edges?t.edges.map(function(e){return s(e=(0,r.pi)({},e))&&(e.cursor=u("cursor",e)),e}):[];if(t.pageInfo){var c=t.pageInfo,d=c.startCursor,h=c.endCursor,p=l[0],f=l[l.length-1];p&&d&&(p.cursor=d),f&&h&&(f.cursor=h);var m=p&&p.cursor;m&&!d&&(t=(0,i.Ee)(t,{pageInfo:{startCursor:m}}));var g=f&&f.cursor;g&&!h&&(t=(0,i.Ee)(t,{pageInfo:{endCursor:g}}))}var v=e.edges,y=[];if(o&&o.after){var b=v.findIndex(function(e){return e.cursor===o.after});b>=0&&(v=v.slice(0,b+1))}else if(o&&o.before){var b=v.findIndex(function(e){return e.cursor===o.before});y=b<0?v:v.slice(b),v=[]}else t.edges&&(v=[]);var w=(0,r.ev)((0,r.ev)((0,r.ev)([],v,!0),l,!0),y,!0),k=(0,r.pi)((0,r.pi)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var x=t.pageInfo,_=x.hasPreviousPage,S=x.hasNextPage,d=x.startCursor,h=x.endCursor;Object.assign(k,(0,r._T)(x,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),v.length||(void 0!==_&&(k.hasPreviousPage=_),void 0===d||(k.startCursor=d)),y.length||(void 0!==S&&(k.hasNextPage=S),void 0===h||(k.endCursor=h))}return(0,r.pi)((0,r.pi)((0,r.pi)({},a(e)),a(t)),{edges:w,pageInfo:k})}}}var a=function(e){return(0,r._T)(e,s)},s=["edges","pageInfo"]},56666:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t{},o=r.Fragment?e=>e?e.length>1?(0,r.createElement)(r.Fragment,null,...e):r.Children.only(e):null:r.Children.only;class a extends r.PureComponent{constructor(...e){super(...e),this.t=!1,this.i=null,this.o=i}componentWillUnmount(){this.o()}u(e){e!==this.i&&(this.o(),this.i=null,e&&(this.i=e,this.o=e.on("updated",()=>this.forceUpdate())))}get allowed(){return this.t}l(){let e=this.props,t=e.of||e.a||e.an||e.this||e.on,n=e.not?"cannot":"can";return e.ability[n](e.I||e.do,t,e.field)}render(){return this.u(this.props.ability),this.t=this.l(),this.props.passThrough||this.t?this.h():null}h(){let{children:e,ability:t}=this.props;return o("function"==typeof e?e(this.t,t):e)}}function s(e){return t=>(0,r.createElement)(e,null,e=>(0,r.createElement)(a,Object.assign({ability:e},t)))}function u(e){let t=r.useContext(e),[n,i]=r.useState();return r.useEffect(()=>t.on("updated",e=>{e.rules!==n&&i(e.rules)}),[]),t}},11121:function(e,t,n){"use strict";n.d(t,{H:function(){return c}});var r=n(21901),i=n(24735),o=n(29058),a=n(59576),s=n(87651),u=n(31053),l=n(52322),c=(0,o.G)(function(e,t){let{className:n,motionProps:o,...c}=e,{reduceMotion:d}=(0,r.EF)(),{getPanelProps:h,isOpen:p}=(0,i.bB)(),f=h(c,t),m=(0,u.cx)("chakra-accordion__panel",n),g=(0,i.YO)();d||delete f.hidden;let v=(0,l.jsx)(a.m.div,{...f,__css:g.panel,className:m});return d?v:(0,l.jsx)(s.U,{in:p,...o,children:v})});c.displayName="AccordionPanel"},21901:function(e,t,n){"use strict";n.d(t,{As:function(){return l},EF:function(){return d},Zl:function(){return h},a2:function(){return c}});var r=n(24735),i=n(9165),o=n(59572),a=n(85244),s=n(31053),u=n(2784);function l(e){let{onChange:t,defaultIndex:n,index:i,allowMultiple:a,allowToggle:l,...c}=e;(function(e){let t=e.index||e.defaultIndex,n=null!=t&&!Array.isArray(t)&&e.allowMultiple;(0,s.ZK)({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})})(e),(0,s.ZK)({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"});let d=(0,r._v)(),[h,p]=(0,u.useState)(-1);(0,u.useEffect)(()=>()=>{p(-1)},[]);let[f,m]=(0,o.T)({value:i,defaultValue:()=>a?null!=n?n:[]:null!=n?n:-1,onChange:t});return{index:f,setIndex:m,htmlProps:c,getAccordionItemProps:e=>{let t=!1;return null!==e&&(t=Array.isArray(f)?f.includes(e):f===e),{isOpen:t,onChange:t=>{null!==e&&(a&&Array.isArray(f)?m(t?f.concat(e):f.filter(t=>t!==e)):t?m(e):l&&m(-1))}}},focusedIndex:h,setFocusedIndex:p,descendants:d}}var[c,d]=(0,i.k)({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function h(e){var t;let{isDisabled:n,isFocusable:i,id:o,...l}=e,{getAccordionItemProps:c,setFocusedIndex:h}=d(),p=(0,u.useRef)(null),f=(0,u.useId)(),m=null!=o?o:f,g=`accordion-button-${m}`,v=`accordion-panel-${m}`;(0,s.ZK)({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. `});let{register:y,index:b,descendants:w}=(0,r.mc)({disabled:n&&!i}),{isOpen:k,onChange:x}=c(-1===b?null:b);t={isOpen:k,isDisabled:n},(0,s.ZK)({condition:t.isOpen&&!!t.isDisabled,message:"Cannot open a disabled accordion item"});let _=(0,u.useCallback)(()=>{null==x||x(!k),h(b)},[b,h,k,x]),S=(0,u.useCallback)(e=>{let t={ArrowDown:()=>{let e=w.nextEnabled(b);null==e||e.node.focus()},ArrowUp:()=>{let e=w.prevEnabled(b);null==e||e.node.focus()},Home:()=>{let e=w.firstEnabled();null==e||e.node.focus()},End:()=>{let e=w.lastEnabled();null==e||e.node.focus()}}[e.key];t&&(e.preventDefault(),t(e))},[w,b]),E=(0,u.useCallback)(()=>{h(b)},[h,b]),D=(0,u.useCallback)(function(e={},t=null){return{...e,type:"button",ref:(0,a.lq)(y,p,t),id:g,disabled:!!n,"aria-expanded":!!k,"aria-controls":v,onClick:(0,s.v0)(e.onClick,_),onFocus:(0,s.v0)(e.onFocus,E),onKeyDown:(0,s.v0)(e.onKeyDown,S)}},[g,n,k,_,E,S,v,y]),C=(0,u.useCallback)(function(e={},t=null){return{...e,ref:t,role:"region",id:v,"aria-labelledby":g,hidden:!k}},[g,k,v]);return{isOpen:k,isDisabled:n,isFocusable:i,onOpen:()=>{null==x||x(!0)},onClose:()=>{null==x||x(!1)},getButtonProps:D,getPanelProps:C,htmlProps:l}}},49259:function(e,t,n){"use strict";n.d(t,{U:function(){return h}});var r=n(21901),i=n(24735),o=n(29058),a=n(91982),s=n(84586),u=n(59576),l=n(31053),c=n(2784),d=n(52322),h=(0,o.G)(function({children:e,reduceMotion:t,...n},o){let h=(0,a.jC)("Accordion",n),p=(0,s.Lr)(n),{htmlProps:f,descendants:m,...g}=(0,r.As)(p),v=(0,c.useMemo)(()=>({...g,reduceMotion:!!t}),[g,t]);return(0,d.jsx)(i.di,{value:m,children:(0,d.jsx)(r.a2,{value:v,children:(0,d.jsx)(i.lh,{value:h,children:(0,d.jsx)(u.m.div,{ref:o,...f,className:(0,l.cx)("chakra-accordion",n.className),__css:h.root,children:e})})})})});h.displayName="Accordion"},87436:function(e,t,n){"use strict";n.d(t,{Q:function(){return c}});var r=n(21901),i=n(24735),o=n(29058),a=n(59576),s=n(31053),u=n(2784),l=n(52322),c=(0,o.G)(function(e,t){let{children:n,className:o}=e,{htmlProps:c,...d}=(0,r.Zl)(e),h={...(0,i.YO)().container,overflowAnchor:"none"},p=(0,u.useMemo)(()=>d,[d]);return(0,l.jsx)(i.ec,{value:p,children:(0,l.jsx)(a.m.div,{ref:t,...c,className:(0,s.cx)("chakra-accordion__item",o),__css:h,children:"function"==typeof n?n({isExpanded:!!d.isOpen,isDisabled:!!d.isDisabled}):n})})});c.displayName="AccordionItem"},95897:function(e,t,n){"use strict";n.d(t,{K:function(){return u}});var r=n(24735),i=n(29058),o=n(59576),a=n(31053),s=n(52322),u=(0,i.G)(function(e,t){let{getButtonProps:n}=(0,r.bB)(),i=n(e,t),u={display:"flex",alignItems:"center",width:"100%",outline:0,...(0,r.YO)().button};return(0,s.jsx)(o.m.button,{...i,className:(0,a.cx)("chakra-accordion__button",e.className),__css:u})});u.displayName="AccordionButton"},24735:function(e,t,n){"use strict";n.d(t,{YO:function(){return a},_v:function(){return d},bB:function(){return u},di:function(){return l},ec:function(){return s},lh:function(){return o},mc:function(){return h}});var r=n(81550),i=n(9165),[o,a]=(0,i.k)({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[s,u]=(0,i.k)({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[l,c,d,h]=(0,r.n)()},89511:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(21901),i=n(24735),o=n(62929),a=n(31053),s=n(52322);function u(e){let{isOpen:t,isDisabled:n}=(0,i.bB)(),{reduceMotion:u}=(0,r.EF)(),l=(0,a.cx)("chakra-accordion__icon",e.className),c={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:u?void 0:"transform 0.2s",transformOrigin:"center",...(0,i.YO)().icon};return(0,s.jsx)(o.J,{viewBox:"0 0 24 24","aria-hidden":!0,className:l,__css:c,...e,children:(0,s.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}u.displayName="AccordionIcon"},47443:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var r=n(35824),i=n(31053),o=n(29058),a=n(84586),s=n(91982),u=n(59576),l=n(52322),c=(0,o.G)(function(e,t){var n;let{status:o="info",addRole:c=!0,...d}=(0,a.Lr)(e),h=null!=(n=e.colorScheme)?n:(0,r.TR)(o),p=(0,s.jC)("Alert",{...e,colorScheme:h}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...p.container};return(0,l.jsx)(r.uZ,{value:{status:o},children:(0,l.jsx)(r.Hm,{value:p,children:(0,l.jsx)(u.m.div,{"data-status":o,role:c?"alert":void 0,ref:t,...d,className:(0,i.cx)("chakra-alert",e.className),__css:f})})})});c.displayName="Alert"},52929:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(35824),i=n(31053),o=n(59576),a=n(52322);function s(e){let{status:t}=(0,r.oX)(),n=(0,r.XO)(t),s=(0,r.uL)(),u="loading"===t?s.spinner:s.icon;return(0,a.jsx)(o.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:u,children:e.children||(0,a.jsx)(n,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},74444:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var r=n(35824),i=n(31053),o=n(29058),a=n(59576),s=n(52322),u=(0,o.G)(function(e,t){let n=(0,r.uL)(),{status:o}=(0,r.oX)(),u={display:"inline",...n.description};return(0,s.jsx)(a.m.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__desc",e.className),__css:u})});u.displayName="AlertDescription"},80877:function(e,t,n){"use strict";n.d(t,{C:function(){return u}});var r=n(35824),i=n(31053),o=n(29058),a=n(59576),s=n(52322),u=(0,o.G)(function(e,t){let n=(0,r.uL)(),{status:o}=(0,r.oX)();return(0,s.jsx)(a.m.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__title",e.className),__css:n.title})});u.displayName="AlertTitle"},35824:function(e,t,n){"use strict";n.d(t,{uZ:function(){return u},Hm:function(){return c},TR:function(){return p},XO:function(){return f},oX:function(){return l},uL:function(){return d}});var r=n(62929),i=n(52322);function o(e){return(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var a=n(9165),s=n(81540),[u,l]=(0,a.k)({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[c,d]=(0,a.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),h={info:{icon:function(e){return(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:o,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:o,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function p(e){return h[e].colorScheme}function f(e){return h[e].icon}},93274:function(e,t,n){"use strict";n.d(t,{H:function(){return h}});var r=n(109),i=n(29058),o=n(91982),a=n(84586),s=n(59576),u=n(31053),l=n(25578),c=n(2784),d=n(52322),h=(0,i.G)(function(e,t){let n=(0,o.jC)("Avatar",e),{children:i,borderColor:h,max:p,spacing:f="-0.75rem",borderRadius:m="full",...g}=(0,a.Lr)(e),v=(0,l.W)(i),y=null!=p?v.slice(0,p):v,b=null!=p?v.length-p:0,w=y.reverse().map((t,n)=>{var r;let i={marginEnd:0===n?0:f,size:e.size,borderColor:null!=(r=t.props.borderColor)?r:h,showBorder:!0};return(0,c.cloneElement)(t,function(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}(i))}),k={display:"flex",alignItems:"center",justifyContent:"flex-end",flexDirection:"row-reverse",...n.group},x={borderRadius:m,marginStart:f,...r.O,...n.excessLabel};return(0,d.jsxs)(s.m.div,{ref:t,role:"group",__css:k,...g,className:(0,u.cx)("chakra-avatar__group",e.className),children:[b>0&&(0,d.jsx)(s.m.span,{className:"chakra-avatar__excess",__css:x,children:`+${b}`}),w]})});h.displayName="AvatarGroup"},31584:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r=n(2605),i=n(29058),o=n(59576),a=n(31053),s=n(52322),u={"top-start":{top:"0",insetStart:"0",transform:"translate(-25%, -25%)"},"top-end":{top:"0",insetEnd:"0",transform:"translate(25%, -25%)"},"bottom-start":{bottom:"0",insetStart:"0",transform:"translate(-25%, 25%)"},"bottom-end":{bottom:"0",insetEnd:"0",transform:"translate(25%, 25%)"}},l=(0,i.G)(function(e,t){let{placement:n="bottom-end",className:i,...l}=e,c=(0,r.d)(),d={position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...u[n],...c.badge};return(0,s.jsx)(o.m.div,{ref:t,...l,className:(0,a.cx)("chakra-avatar__badge",i),__css:d})});l.displayName="AvatarBadge"},2605:function(e,t,n){"use strict";n.d(t,{Z:function(){return r},d:function(){return i}});var[r,i]=(0,n(9165).k)({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:""})},109:function(e,t,n){"use strict";n.d(t,{q:function(){return v},O:function(){return g}});var r=n(2605),i=n(59576),o=n(52322);function a(e){var t;let n=e.split(" "),r=null!=(t=n[0])?t:"",i=n.length>1?n[n.length-1]:"";return r&&i?`${r.charAt(0)}${i.charAt(0)}`:r.charAt(0)}function s(e){let{name:t,getInitials:n,...a}=e,s=(0,r.d)();return(0,o.jsx)(i.m.div,{role:"img","aria-label":t,...a,__css:s.label,children:t?null==n?void 0:n(t):null})}s.displayName="AvatarName";var u=e=>(0,o.jsxs)(i.m.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[(0,o.jsx)("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,o.jsx)("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),l=n(15596),c=n(2784);function d(e){let{src:t,srcSet:n,onError:r,onLoad:a,getInitials:d,name:h,borderRadius:p,loading:f,iconLabel:m,icon:g=(0,o.jsx)(u,{}),ignoreFallback:v,referrerPolicy:y,crossOrigin:b}=e,w=(0,l.d)({src:t,onError:r,crossOrigin:b,ignoreFallback:v});return t&&"loaded"===w?(0,o.jsx)(i.m.img,{src:t,srcSet:n,alt:h,onLoad:a,referrerPolicy:y,crossOrigin:null!=b?b:void 0,className:"chakra-avatar__img",loading:f,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:p}}):h?(0,o.jsx)(s,{className:"chakra-avatar__initials",getInitials:d,name:h}):(0,c.cloneElement)(g,{role:"img","aria-label":m})}d.displayName="AvatarImage";var h=n(29058),p=n(91982),f=n(84586),m=n(31053),g={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},v=(0,h.G)((e,t)=>{let n=(0,p.jC)("Avatar",e),[s,l]=(0,c.useState)(!1),{src:h,srcSet:v,name:y,showBorder:b,borderRadius:w="full",onError:k,onLoad:x,getInitials:_=a,icon:S=(0,o.jsx)(u,{}),iconLabel:E=" avatar",loading:D,children:C,borderColor:j,ignoreFallback:O,crossOrigin:T,referrerPolicy:A,...P}=(0,f.Lr)(e),R={borderRadius:w,borderWidth:b?"2px":void 0,...g,...n.container};return j&&(R.borderColor=j),(0,o.jsx)(i.m.span,{ref:t,...P,className:(0,m.cx)("chakra-avatar",e.className),"data-loaded":(0,m.PB)(s),__css:R,children:(0,o.jsxs)(r.Z,{value:n,children:[(0,o.jsx)(d,{src:h,srcSet:v,loading:D,onLoad:(0,m.v0)(x,()=>{l(!0)}),onError:k,getInitials:_,name:y,borderRadius:w,icon:S,iconLabel:E,ignoreFallback:O,crossOrigin:T,referrerPolicy:A}),C]})})});v.displayName="Avatar"},49456:function(e,t,n){"use strict";n.d(t,{AV:function(){return i},XQ:function(){return o},Yq:function(){return a}});var r=n(31053),i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,r.Kn)(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}function a(e,t=i){let n={};return e.forEach((e,r)=>{let i=t[r];null!=e&&(n[i]=e)}),n}},32899:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(62614),i=n(29058),o=n(2784),a=n(52322),s=(0,i.G)((e,t)=>{let{icon:n,children:i,isRound:s,"aria-label":u,...l}=e,c=n||i,d=(0,o.isValidElement)(c)?(0,o.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(r.z,{padding:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":u,...l,children:d})});s.displayName="IconButton"},75768:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(68843),i=n(29058),o=n(59576),a=n(31053),s=n(2784),u=n(52322),l={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},c={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},d=(0,i.G)(function(e,t){let{size:n,colorScheme:i,variant:d,className:h,spacing:p="0.5rem",isAttached:f,isDisabled:m,orientation:g="horizontal",...v}=e,y=(0,a.cx)("chakra-button__group",h),b=(0,s.useMemo)(()=>({size:n,colorScheme:i,variant:d,isDisabled:m}),[n,i,d,m]),w={display:"inline-flex",...f?l[g]:c[g](p)},k="vertical"===g;return(0,u.jsx)(r.D,{value:b,children:(0,u.jsx)(o.m.div,{ref:t,role:"group",__css:w,className:y,"data-attached":f?"":void 0,"data-orientation":g,flexDir:k?"column":void 0,...v})})});d.displayName="ButtonGroup"},68843:function(e,t,n){"use strict";n.d(t,{D:function(){return r},i:function(){return i}});var[r,i]=(0,n(9165).k)({strict:!1,name:"ButtonGroupContext"})},62614:function(e,t,n){"use strict";n.d(t,{z:function(){return m}});var r=n(2784),i=n(68843),o=n(59576),a=n(31053),s=n(52322);function u(e){let{children:t,className:n,...i}=e,u=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,l=(0,a.cx)("chakra-button__icon",n);return(0,s.jsx)(o.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:l,children:u})}u.displayName="ButtonIcon";var l=n(81540);function c(e){let{label:t,placement:n,spacing:i="0.5rem",children:u=(0,s.jsx)(l.$,{color:"currentColor",width:"1em",height:"1em"}),className:c,__css:d,...h}=e,p=(0,a.cx)("chakra-button__spinner",c),f="start"===n?"marginEnd":"marginStart",m=(0,r.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?i:0,fontSize:"1em",lineHeight:"normal",...d}),[d,t,f,i]);return(0,s.jsx)(o.m.div,{className:p,...h,__css:m,children:u})}c.displayName="ButtonSpinner";var d=n(85244),h=n(29058),p=n(91982),f=n(84586),m=(0,h.G)((e,t)=>{let n=(0,i.i)(),u=(0,p.mq)("Button",{...n,...e}),{isDisabled:l=null==n?void 0:n.isDisabled,isLoading:h,isActive:m,children:v,leftIcon:y,rightIcon:b,loadingText:w,iconSpacing:k="0.5rem",type:x,spinner:_,spinnerPlacement:S="start",className:E,as:D,...C}=(0,f.Lr)(e),j=(0,r.useMemo)(()=>{let e={...null==u?void 0:u._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...u,...!!n&&{_focus:e}}},[u,n]),{ref:O,type:T}=function(e){let[t,n]=(0,r.useState)(!e);return{ref:(0,r.useCallback)(e=>{e&&n("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(D),A={rightIcon:b,leftIcon:y,iconSpacing:k,children:v};return(0,s.jsxs)(o.m.button,{ref:(0,d.qq)(t,O),as:D,type:null!=x?x:T,"data-active":(0,a.PB)(m),"data-loading":(0,a.PB)(h),__css:j,className:(0,a.cx)("chakra-button",E),...C,disabled:l||h,children:[h&&"start"===S&&(0,s.jsx)(c,{className:"chakra-button__spinner--start",label:w,placement:"start",spacing:k,children:_}),h?w||(0,s.jsx)(o.m.span,{opacity:0,children:(0,s.jsx)(g,{...A})}):(0,s.jsx)(g,{...A}),h&&"end"===S&&(0,s.jsx)(c,{className:"chakra-button__spinner--end",label:w,placement:"end",spacing:k,children:_})]})});function g(e){let{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)(u,{marginEnd:i,children:t}),r,n&&(0,s.jsx)(u,{marginStart:i,children:n})]})}m.displayName="Button"},28448:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(76874),i=n(36140),o=n(3171),a=n(90359),s=n(85244),u=n(31053),l=n(51679),c=n(67274),d=n(2784);function h(e={}){let{isDisabled:t,isReadOnly:n,isRequired:h,isInvalid:f,id:m,onBlur:g,onFocus:v,"aria-describedby":y}=(0,r.K)(e),{defaultChecked:b,isChecked:w,isFocusable:k,onChange:x,isIndeterminate:_,name:S,value:E,tabIndex:D,"aria-label":C,"aria-labelledby":j,"aria-invalid":O,...T}=e,A=function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(T,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),P=(0,a.W)(x),R=(0,a.W)(g),M=(0,a.W)(v),[F,N]=(0,d.useState)(!1),[I,L]=(0,d.useState)(!1),[B,z]=(0,d.useState)(!1),[U,q]=(0,d.useState)(!1);(0,d.useEffect)(()=>(0,c.BT)(N),[]);let $=(0,d.useRef)(null),[H,W]=(0,d.useState)(!0),[V,G]=(0,d.useState)(!!b),Y=void 0!==w,Z=Y?w:V,K=(0,d.useCallback)(e=>{if(n||t){e.preventDefault();return}Y||(Z?G(e.target.checked):G(!!_||e.target.checked)),null==P||P(e)},[n,t,Z,Y,_,P]);(0,i.G)(()=>{$.current&&($.current.indeterminate=!!_)},[_]),(0,o.r)(()=>{t&&L(!1)},[t,L]),(0,i.G)(()=>{let e=$.current;if(!(null==e?void 0:e.form))return;let t=()=>{G(!!b)};return e.form.addEventListener("reset",t),()=>{var n;return null==(n=e.form)?void 0:n.removeEventListener("reset",t)}},[]);let J=t&&!k,X=(0,d.useCallback)(e=>{" "===e.key&&q(!0)},[q]),Q=(0,d.useCallback)(e=>{" "===e.key&&q(!1)},[q]);(0,i.G)(()=>{$.current&&$.current.checked!==Z&&G($.current.checked)},[$.current]);let ee=(0,d.useCallback)((e={},r=null)=>({...e,ref:r,"data-active":(0,u.PB)(U),"data-hover":(0,u.PB)(B),"data-checked":(0,u.PB)(Z),"data-focus":(0,u.PB)(I),"data-focus-visible":(0,u.PB)(I&&F),"data-indeterminate":(0,u.PB)(_),"data-disabled":(0,u.PB)(t),"data-invalid":(0,u.PB)(f),"data-readonly":(0,u.PB)(n),"aria-hidden":!0,onMouseDown:(0,u.v0)(e.onMouseDown,e=>{I&&e.preventDefault(),q(!0)}),onMouseUp:(0,u.v0)(e.onMouseUp,()=>q(!1)),onMouseEnter:(0,u.v0)(e.onMouseEnter,()=>z(!0)),onMouseLeave:(0,u.v0)(e.onMouseLeave,()=>z(!1))}),[U,Z,t,I,F,B,_,f,n]),et=(0,d.useCallback)((e={},r=null)=>({...e,ref:r,"data-active":(0,u.PB)(U),"data-hover":(0,u.PB)(B),"data-checked":(0,u.PB)(Z),"data-focus":(0,u.PB)(I),"data-focus-visible":(0,u.PB)(I&&F),"data-indeterminate":(0,u.PB)(_),"data-disabled":(0,u.PB)(t),"data-invalid":(0,u.PB)(f),"data-readonly":(0,u.PB)(n)}),[U,Z,t,I,F,B,_,f,n]),en=(0,d.useCallback)((e={},n=null)=>({...A,...e,ref:(0,s.lq)(n,e=>{e&&W("LABEL"===e.tagName)}),onClick:(0,u.v0)(e.onClick,()=>{var e;H||(null==(e=$.current)||e.click(),requestAnimationFrame(()=>{var e;null==(e=$.current)||e.focus({preventScroll:!0})}))}),"data-disabled":(0,u.PB)(t),"data-checked":(0,u.PB)(Z),"data-invalid":(0,u.PB)(f)}),[A,t,Z,f,H]),er=(0,d.useCallback)((e={},r=null)=>({...e,ref:(0,s.lq)($,r),type:"checkbox",name:S,value:E,id:m,tabIndex:D,onChange:(0,u.v0)(e.onChange,K),onBlur:(0,u.v0)(e.onBlur,R,()=>L(!1)),onFocus:(0,u.v0)(e.onFocus,M,()=>L(!0)),onKeyDown:(0,u.v0)(e.onKeyDown,X),onKeyUp:(0,u.v0)(e.onKeyUp,Q),required:h,checked:Z,disabled:J,readOnly:n,"aria-label":C,"aria-labelledby":j,"aria-invalid":O?!!O:f,"aria-describedby":y,"aria-disabled":t,style:l.N}),[S,E,m,K,R,M,X,Q,h,Z,J,n,C,j,O,f,y,t,D]),ei=(0,d.useCallback)((e={},n=null)=>({...e,ref:n,onMouseDown:(0,u.v0)(e.onMouseDown,p),"data-disabled":(0,u.PB)(t),"data-checked":(0,u.PB)(Z),"data-invalid":(0,u.PB)(f)}),[Z,t,f]);return{state:{isInvalid:f,isFocused:I,isChecked:Z,isActive:U,isHovered:B,isIndeterminate:_,isDisabled:t,isReadOnly:n,isRequired:h},getRootProps:en,getCheckboxProps:ee,getIndicatorProps:et,getInputProps:er,getLabelProps:ei,htmlProps:A}}function p(e){e.preventDefault(),e.stopPropagation()}},82713:function(e,t,n){"use strict";n.d(t,{X:function(){return x}});var r=n(2784),[i,o]=(0,n(9165).k)({name:"CheckboxGroupContext",strict:!1}),a=n(59576),s=n(52322);function u(e){return(0,s.jsx)(a.m.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:(0,s.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function l(e){return(0,s.jsx)(a.m.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:(0,s.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function c(e){let{isIndeterminate:t,isChecked:n,...r}=e;return n||t?(0,s.jsx)(a.m.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,s.jsx)(t?l:u,{...r})}):null}var d=n(28448),h=n(31053),p=n(28165),f=n(29058),m=n(91982),g=n(84586),v={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},y={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},b=(0,p.F4)({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),w=(0,p.F4)({from:{opacity:0},to:{opacity:1}}),k=(0,p.F4)({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),x=(0,f.G)(function(e,t){let n=o(),i={...n,...e},u=(0,m.jC)("Checkbox",i),l=(0,g.Lr)(e),{spacing:p="0.5rem",className:f,children:x,iconColor:_,iconSize:S,icon:E=(0,s.jsx)(c,{}),isChecked:D,isDisabled:C=null==n?void 0:n.isDisabled,onChange:j,inputProps:O,...T}=l,A=D;(null==n?void 0:n.value)&&l.value&&(A=n.value.includes(l.value));let P=j;(null==n?void 0:n.onChange)&&l.value&&(P=(0,h.PP)(n.onChange,j));let{state:R,getInputProps:M,getCheckboxProps:F,getLabelProps:N,getRootProps:I}=(0,d.O)({...T,isDisabled:C,isChecked:A,onChange:P}),L=function(e){let[t,n]=(0,r.useState)(e),[i,o]=(0,r.useState)(!1);return e!==t&&(o(!0),n(e)),i}(R.isChecked),B=(0,r.useMemo)(()=>({animation:L?R.isIndeterminate?`${w} 20ms linear, ${k} 200ms linear`:`${b} 200ms linear`:void 0,fontSize:S,color:_,...u.icon}),[_,S,L,R.isIndeterminate,u.icon]),z=(0,r.cloneElement)(E,{__css:B,isIndeterminate:R.isIndeterminate,isChecked:R.isChecked});return(0,s.jsxs)(a.m.label,{__css:{...y,...u.container},className:(0,h.cx)("chakra-checkbox",f),...I(),children:[(0,s.jsx)("input",{className:"chakra-checkbox__input",...M(O,t)}),(0,s.jsx)(a.m.span,{__css:{...v,...u.control},className:"chakra-checkbox__control",...F(),children:z}),x&&(0,s.jsx)(a.m.span,{className:"chakra-checkbox__label",...N(),__css:{marginStart:p,...u.label},children:x})]})});x.displayName="Checkbox"},30350:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(2784),i=n(31053),o=n(85244);function a(e){let{tagName:t,isContentEditable:n}=e.target;return"INPUT"!==t&&"TEXTAREA"!==t&&!0!==n}function s(e={}){let{ref:t,isDisabled:n,isFocusable:s,clickOnEnter:u=!0,clickOnSpace:l=!0,onMouseDown:c,onMouseUp:d,onClick:h,onKeyDown:p,onKeyUp:f,tabIndex:m,onMouseOver:g,onMouseLeave:v,...y}=e,[b,w]=(0,r.useState)(!0),[k,x]=(0,r.useState)(!1),_=function(){let e=(0,r.useRef)(new Map),t=e.current,n=(0,r.useCallback)((t,n,r,i)=>{e.current.set(r,{type:n,el:t,options:i}),t.addEventListener(n,r,i)},[]),i=(0,r.useCallback)((t,n,r,i)=>{t.removeEventListener(n,r,i),e.current.delete(r)},[]);return(0,r.useEffect)(()=>()=>{t.forEach((e,t)=>{i(e.el,e.type,t,e.options)})},[i,t]),{add:n,remove:i}}(),S=b?m:m||0,E=n&&!s,D=(0,r.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==h||h(e)},[n,h]),C=(0,r.useCallback)(e=>{k&&a(e)&&(e.preventDefault(),e.stopPropagation(),x(!1),_.remove(document,"keyup",C,!1))},[k,_]),j=(0,r.useCallback)(e=>{if(null==p||p(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||b)return;let t=u&&"Enter"===e.key;l&&" "===e.key&&(e.preventDefault(),x(!0)),t&&(e.preventDefault(),e.currentTarget.click()),_.add(document,"keyup",C,!1)},[n,b,p,u,l,_,C]),O=(0,r.useCallback)(e=>{null==f||f(e),!n&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!b&&l&&" "===e.key&&(e.preventDefault(),x(!1),e.currentTarget.click())},[l,b,n,f]),T=(0,r.useCallback)(e=>{0===e.button&&(x(!1),_.remove(document,"mouseup",T,!1))},[_]),A=(0,r.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}b||x(!0),e.currentTarget.focus({preventScroll:!0}),_.add(document,"mouseup",T,!1),null==c||c(e)}},[n,b,c,_,T]),P=(0,r.useCallback)(e=>{0===e.button&&(b||x(!1),null==d||d(e))},[d,b]),R=(0,r.useCallback)(e=>{if(n){e.preventDefault();return}null==g||g(e)},[n,g]),M=(0,r.useCallback)(e=>{k&&(e.preventDefault(),x(!1)),null==v||v(e)},[k,v]),F=(0,o.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&w(!1)});return b?{...y,ref:F,type:"button","aria-disabled":E?void 0:n,disabled:E,onClick:D,onMouseDown:c,onMouseUp:d,onKeyUp:f,onKeyDown:p,onMouseOver:g,onMouseLeave:v}:{...y,ref:F,role:"button","data-active":(0,i.PB)(k),"aria-disabled":n?"true":void 0,tabIndex:E?void 0:S,onClick:D,onMouseDown:A,onMouseUp:P,onKeyUp:O,onKeyDown:j,onMouseOver:R,onMouseLeave:M}}},81672:function(e,t,n){"use strict";n.d(t,{P:function(){return c}});var r=n(62929),i=n(29058),o=n(91982),a=n(84586),s=n(59576),u=n(52322);function l(e){return(0,u.jsx)(r.J,{focusable:"false","aria-hidden":!0,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var c=(0,i.G)(function(e,t){let n=(0,o.mq)("CloseButton",e),{children:r,isDisabled:i,__css:c,...d}=(0,a.Lr)(e);return(0,u.jsx)(s.m.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:r||(0,u.jsx)(l,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},50019:function(e,t,n){"use strict";n.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var r=n(2784),i=(0,r.createContext)({});function o(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:n}=o();return"dark"===n?t:e}i.displayName="ColorModeContext"},81550:function(e,t,n){"use strict";n.d(t,{n:function(){return y}});var r=n(2784),i=Object.defineProperty,o=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);function s(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var u=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function l(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function c(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var d="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,h=e=>e,p=class{constructor(){a(this,"descendants",new Map),a(this,"register",e=>{if(null!=e)return u(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),a(this,"unregister",e=>{this.descendants.delete(e);let t=s(Array.from(this.descendants.keys()));this.assignIndex(t)}),a(this,"destroy",()=>{this.descendants.clear()}),a(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),a(this,"count",()=>this.descendants.size),a(this,"enabledCount",()=>this.enabledValues().length),a(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),a(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),a(this,"item",e=>{if(0!==this.count())return this.values()[e]}),a(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),a(this,"first",()=>this.item(0)),a(this,"firstEnabled",()=>this.enabledItem(0)),a(this,"last",()=>this.item(this.descendants.size-1)),a(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),a(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),a(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),a(this,"next",(e,t=!0)=>{let n=l(e,this.count(),t);return this.item(n)}),a(this,"nextEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let r=l(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)}),a(this,"prev",(e,t=!0)=>{let n=c(e,this.count()-1,t);return this.item(n)}),a(this,"prevEnabled",(e,t=!0)=>{let n=this.item(e);if(!n)return;let r=c(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)}),a(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=s(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}},f=n(9165),m=n(85244),[g,v]=(0,f.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function y(){return[h(g),()=>h(v()),()=>(function(){let e=(0,r.useRef)(new p);return d(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=v(),[n,i]=(0,r.useState)(-1),o=(0,r.useRef)(null);d(()=>()=>{o.current&&t.unregister(o.current)},[]),d(()=>{if(!o.current)return;let e=Number(o.current.dataset.index);n==e||Number.isNaN(e)||i(e)});let a=e?h(t.register(e)):h(t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:(0,m.lq)(a,o)}})(e)]}},75800:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!r(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}function o(e){var t,n;return null!=(n=null==(t=a(e))?void 0:t.defaultView)?n:window}function a(e){return r(e)?e.ownerDocument:document}function s(e){return a(e).activeElement}n.d(t,{Re:function(){return i},kR:function(){return o},vY:function(){return s}})},41741:function(e,t,n){"use strict";n.d(t,{EB:function(){return a},Wq:function(){return s}});var r=n(75800),i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(e){var t;if(!(0,r.Re)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in o?o[n]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}function s(e){return!!e&&(0,r.Re)(e)&&a(e)&&!o(e)}},51905:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(41741),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&i(e))}},37285:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent"}},64951:function(e,t,n){"use strict";n.d(t,{V:function(){return l}});var r=n(37285),i=n(95083),o=n(29058),a=n(59576),s=n(31053),u=n(52322),l=(0,o.G)(function(e,t){let{getInputProps:n}=(0,i.V)(),o=(0,i.d4)(),l=n(e,t),c=(0,s.cx)("chakra-editable__input",e.className);return(0,u.jsx)(a.m.input,{...l,__css:{outline:0,...r.i,...o.input},className:c})});l.displayName="EditableInput"},58905:function(e,t,n){"use strict";n.d(t,{C:function(){return y}});var r=n(76294),i=n(36140),o=n(3171),a=n(59572),s=n(85244),u=n(90359),l=n(31053),c=n(2784);function d(e,t){return!!e&&(e===t||e.contains(t))}var h=n(95083),p=n(29058),f=n(91982),m=n(84586),g=n(59576),v=n(52322),y=(0,p.G)(function(e,t){let n=(0,f.jC)("Editable",e),{htmlProps:p,...y}=function(e={}){let{onChange:t,onCancel:n,onSubmit:h,onBlur:p,value:f,isDisabled:m,defaultValue:g,startWithEditView:v,isPreviewFocusable:y=!0,submitOnBlur:b=!0,selectAllOnFocus:w=!0,placeholder:k,onEdit:x,finalFocusRef:_,...S}=e,E=(0,u.W)(x),D=!!(v&&!m),[C,j]=(0,c.useState)(D),[O,T]=(0,a.T)({defaultValue:g||"",value:f,onChange:t}),[A,P]=(0,c.useState)(O),R=(0,c.useRef)(null),M=(0,c.useRef)(null),F=(0,c.useRef)(null),N=(0,c.useRef)(null),I=(0,c.useRef)(null);(0,r.s)({ref:R,enabled:C,elements:[N,I]});let L=!C&&!m;(0,i.G)(()=>{var e,t;C&&(null==(e=R.current)||e.focus(),w&&(null==(t=R.current)||t.select()))},[]),(0,o.r)(()=>{var e,t,n,r;if(!C){_?null==(e=_.current)||e.focus():null==(t=F.current)||t.focus();return}null==(n=R.current)||n.focus(),w&&(null==(r=R.current)||r.select()),null==E||E()},[C,E,w]);let B=(0,c.useCallback)(()=>{L&&j(!0)},[L]),z=(0,c.useCallback)(()=>{P(O)},[O]),U=(0,c.useCallback)(()=>{j(!1),T(A),null==n||n(A),null==p||p(A)},[n,p,T,A]),q=(0,c.useCallback)(()=>{j(!1),P(O),null==h||h(O),null==p||p(A)},[O,h,p,A]);(0,c.useEffect)(()=>{if(C)return;let e=R.current;(null==e?void 0:e.ownerDocument.activeElement)===e&&(null==e||e.blur())},[C]);let $=(0,c.useCallback)(e=>{T(e.currentTarget.value)},[T]),H=(0,c.useCallback)(e=>{let t={Escape:U,Enter:e=>{e.shiftKey||e.metaKey||q()}}[e.key];t&&(e.preventDefault(),t(e))},[U,q]),W=(0,c.useCallback)(e=>{let t={Escape:U}[e.key];t&&(e.preventDefault(),t(e))},[U]),V=0===O.length,G=(0,c.useCallback)(e=>{var t;if(!C)return;let n=e.currentTarget.ownerDocument,r=null!=(t=e.relatedTarget)?t:n.activeElement,i=d(N.current,r),o=d(I.current,r);i||o||(b?q():U())},[b,q,U,C]),Y=(0,c.useCallback)((e={},t=null)=>{let n=L&&y?0:void 0;return{...e,ref:(0,s.lq)(t,M),children:V?k:O,hidden:C,"aria-disabled":(0,l.Qm)(m),tabIndex:n,onFocus:(0,l.v0)(e.onFocus,B,z)}},[m,C,L,y,V,B,z,k,O]),Z=(0,c.useCallback)((e={},t=null)=>({...e,hidden:!C,placeholder:k,ref:(0,s.lq)(t,R),disabled:m,"aria-disabled":(0,l.Qm)(m),value:O,onBlur:(0,l.v0)(e.onBlur,G),onChange:(0,l.v0)(e.onChange,$),onKeyDown:(0,l.v0)(e.onKeyDown,H),onFocus:(0,l.v0)(e.onFocus,z)}),[m,C,G,$,H,z,k,O]),K=(0,c.useCallback)((e={},t=null)=>({...e,hidden:!C,placeholder:k,ref:(0,s.lq)(t,R),disabled:m,"aria-disabled":(0,l.Qm)(m),value:O,onBlur:(0,l.v0)(e.onBlur,G),onChange:(0,l.v0)(e.onChange,$),onKeyDown:(0,l.v0)(e.onKeyDown,W),onFocus:(0,l.v0)(e.onFocus,z)}),[m,C,G,$,W,z,k,O]),J=(0,c.useCallback)((e={},t=null)=>({"aria-label":"Edit",...e,type:"button",onClick:(0,l.v0)(e.onClick,B),ref:(0,s.lq)(t,F),disabled:m}),[B,m]),X=(0,c.useCallback)((e={},t=null)=>({...e,"aria-label":"Submit",ref:(0,s.lq)(I,t),type:"button",onClick:(0,l.v0)(e.onClick,q),disabled:m}),[q,m]),Q=(0,c.useCallback)((e={},t=null)=>({"aria-label":"Cancel",id:"cancel",...e,ref:(0,s.lq)(N,t),type:"button",onClick:(0,l.v0)(e.onClick,U),disabled:m}),[U,m]);return{isEditing:C,isDisabled:m,isValueEmpty:V,value:O,onEdit:B,onCancel:U,onSubmit:q,getPreviewProps:Y,getInputProps:Z,getTextareaProps:K,getEditButtonProps:J,getSubmitButtonProps:X,getCancelButtonProps:Q,htmlProps:S}}((0,m.Lr)(e)),{isEditing:b,onSubmit:w,onCancel:k,onEdit:x}=y,_=(0,l.cx)("chakra-editable",e.className),S=(0,l.Pu)(e.children,{isEditing:b,onSubmit:w,onCancel:k,onEdit:x});return(0,v.jsx)(h.ZQ,{value:y,children:(0,v.jsx)(h.Me,{value:n,children:(0,v.jsx)(g.m.div,{ref:t,...p,className:_,children:S})})})});y.displayName="Editable"},75230:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(37285),i=n(95083),o=n(29058),a=n(59576),s=n(31053),u=n(52322),l=(0,o.G)(function(e,t){let{getPreviewProps:n}=(0,i.V)(),o=(0,i.d4)(),l=n(e,t),c=(0,s.cx)("chakra-editable__preview",e.className);return(0,u.jsx)(a.m.span,{...l,__css:{cursor:"text",display:"inline-block",...r.i,...o.preview},className:c})});l.displayName="EditablePreview"},95083:function(e,t,n){"use strict";n.d(t,{Me:function(){return i},V:function(){return s},ZQ:function(){return a},d4:function(){return o}});var r=n(9165),[i,o]=(0,r.k)({name:"EditableStylesContext",errorMessage:"useEditableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[a,s]=(0,r.k)({name:"EditableContext",errorMessage:"useEditableContext: context is undefined. Seems you forgot to wrap the editable components in ``"})},76874:function(e,t,n){"use strict";n.d(t,{K:function(){return a},Y:function(){return o}});var r=n(35183),i=n(31053);function o(e){let{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...s}=a(e);return{...s,disabled:t,readOnly:r,required:o,"aria-invalid":(0,i.Qm)(n),"aria-required":(0,i.Qm)(o),"aria-readonly":(0,i.Qm)(r)}}function a(e){var t,n,o;let a=(0,r.NJ)(),{id:s,disabled:u,readOnly:l,required:c,isRequired:d,isInvalid:h,isReadOnly:p,isDisabled:f,onFocus:m,onBlur:g,...v}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&y.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&y.push(a.helpTextId),{...v,"aria-describedby":y.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!=(t=null!=u?u:f)?t:null==a?void 0:a.isDisabled,isReadOnly:null!=(n=null!=l?l:p)?n:null==a?void 0:a.isReadOnly,isRequired:null!=(o=null!=c?c:d)?o:null==a?void 0:a.isRequired,isInvalid:null!=h?h:null==a?void 0:a.isInvalid,onFocus:(0,i.v0)(null==a?void 0:a.onFocus,m),onBlur:(0,i.v0)(null==a?void 0:a.onBlur,g)}}},35183:function(e,t,n){"use strict";n.d(t,{NI:function(){return g},NJ:function(){return m},e:function(){return p}});var r=n(9165),i=n(85244),o=n(29058),a=n(91982),s=n(84586),u=n(59576),l=n(31053),c=n(2784),d=n(52322),[h,p]=(0,r.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[f,m]=(0,r.k)({strict:!1,name:"FormControlContext"}),g=(0,o.G)(function(e,t){let n=(0,a.jC)("Form",e),{getRootProps:r,htmlProps:o,...p}=function(e){let{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:a,...s}=e,u=(0,c.useId)(),d=t||`field-${u}`,h=`${d}-label`,p=`${d}-feedback`,f=`${d}-helptext`,[m,g]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),[b,w]=(0,c.useState)(!1),k=(0,c.useCallback)((e={},t=null)=>({id:f,...e,ref:(0,i.lq)(t,e=>{e&&y(!0)})}),[f]),x=(0,c.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":(0,l.PB)(b),"data-disabled":(0,l.PB)(o),"data-invalid":(0,l.PB)(r),"data-readonly":(0,l.PB)(a),id:void 0!==e.id?e.id:h,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}),[d,o,b,r,a,h]),_=(0,c.useCallback)((e={},t=null)=>({id:p,...e,ref:(0,i.lq)(t,e=>{e&&g(!0)}),"aria-live":"polite"}),[p]),S=(0,c.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":(0,l.PB)(b),"data-disabled":(0,l.PB)(o),"data-invalid":(0,l.PB)(r),"data-readonly":(0,l.PB)(a)}),[s,o,b,r,a]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!o,isFocused:!!b,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:v,setHasHelpText:y,id:d,labelId:h,feedbackId:p,helpTextId:f,htmlProps:s,getHelpTextProps:k,getErrorMessageProps:_,getRootProps:S,getLabelProps:x,getRequiredIndicatorProps:(0,c.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[])}}((0,s.Lr)(e)),m=(0,l.cx)("chakra-form-control",e.className);return(0,d.jsx)(f,{value:p,children:(0,d.jsx)(h,{value:n,children:(0,d.jsx)(u.m.div,{...r({},t),className:m,__css:n.container})})})});g.displayName="FormControl",(0,o.G)(function(e,t){let n=m(),r=p(),i=(0,l.cx)("chakra-form__helper-text",e.className);return(0,d.jsx)(u.m.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:i})}).displayName="FormHelperText"},97166:function(e,t,n){"use strict";n.d(t,{l:function(){return c}});var r=n(35183),i=n(29058),o=n(91982),a=n(84586),s=n(59576),u=n(31053),l=n(52322),c=(0,i.G)(function(e,t){var n;let i=(0,o.mq)("FormLabel",e),c=(0,a.Lr)(e),{className:h,children:p,requiredIndicator:f=(0,l.jsx)(d,{}),optionalIndicator:m=null,...g}=c,v=(0,r.NJ)(),y=null!=(n=null==v?void 0:v.getLabelProps(g,t))?n:{ref:t,...g};return(0,l.jsxs)(s.m.label,{...y,className:(0,u.cx)("chakra-form__label",c.className),__css:{display:"block",textAlign:"start",...i},children:[p,(null==v?void 0:v.isRequired)?f:m]})});c.displayName="FormLabel";var d=(0,i.G)(function(e,t){let n=(0,r.NJ)(),i=(0,r.e)();if(!(null==n?void 0:n.isRequired))return null;let o=(0,u.cx)("chakra-form__required-indicator",e.className);return(0,l.jsx)(s.m.span,{...null==n?void 0:n.getRequiredIndicatorProps(e,t),__css:i.requiredIndicator,className:o})});d.displayName="RequiredIndicator"},96860:function(e,t,n){"use strict";n.d(t,{Me:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.useId)();return(0,r.useMemo)(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}},65610:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(2784),i=(e,t)=>{let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&i.current)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},18292:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});var r=n(96860),i=n(2784),o=n(33154),a=n(79729);function s(e={}){let{onClose:t,onOpen:n,isOpen:s,id:u}=e,l=(0,o.W)(n),c=(0,o.W)(t),[d,h]=(0,i.useState)(e.defaultIsOpen||!1),[p,f]=function(e,t){let n=void 0!==e;return[n,n&&void 0!==e?e:t]}(s,d),m=(0,r.Me)(u,"disclosure"),g=(0,i.useCallback)(()=>{p||h(!1),null==c||c()},[p,c]),v=(0,i.useCallback)(()=>{p||h(!0),null==l||l()},[p,l]),y=(0,i.useCallback)(()=>{(f?g:v)()},[f,v,g]);return{isOpen:!!f,onOpen:v,onClose:g,onToggle:y,isControlled:p,getButtonProps:(e={})=>({...e,"aria-expanded":f,"aria-controls":m,onClick:(0,a.v0)(e.onClick,y)}),getDisclosureProps:(e={})=>({...e,hidden:!f,id:m})}}},40853:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(33154),i=n(79729),o=n(2784);function a(e,t,n,a){let s=(0,r.W)(t);return(0,o.useEffect)(()=>{var r;let o=null!=(r=(0,i.Pu)(n))?r:document;if(t)return o.addEventListener(e,s,a),()=>{o.removeEventListener(e,s,a)}},[e,n,a,s,t]),()=>{var t;(null!=(t=(0,i.Pu)(n))?t:document).removeEventListener(e,s,a)}}},27988:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(2784);function i(...e){return(0,r.useMemo)(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{e&&function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})},e)}},33154:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(73200),i=n(2784),o=r.jU?i.useLayoutEffect:i.useEffect;function a(e,t=[]){let n=(0,i.useRef)(e);return o(()=>{n.current=e}),(0,i.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}},26284:function(e,t,n){"use strict";n.d(t,{V:function(){return o}});var r=n(2784),i=n(50381);function o(e,t={}){let[n,o]=(0,r.useState)(!1),[a,s]=(0,r.useState)(e);(0,r.useEffect)(()=>s(e),[e]);let{timeout:u=1500,...l}="number"==typeof t?{timeout:t}:t,c=(0,r.useCallback)(()=>{o(i(a,l))},[a,l]);return(0,r.useEffect)(()=>{let e=null;return n&&(e=window.setTimeout(()=>{o(!1)},u)),()=>{e&&window.clearTimeout(e)}},[u,n]),{value:a,setValue:s,onCopy:c,hasCopied:n}}},76643:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(33154),i=n(73200),o=n(2784);function a(e){let{ref:t,handler:n,enabled:a=!0}=e,u=(0,r.W)(n),l=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,o.useEffect)(()=>{if(!a)return;let e=e=>{s(e,t)&&(l.isPointerDown=!0)},r=e=>{if(l.ignoreEmulatedMouseEvents){l.ignoreEmulatedMouseEvents=!1;return}l.isPointerDown&&n&&s(e,t)&&(l.isPointerDown=!1,u(e))},o=e=>{l.ignoreEmulatedMouseEvents=!0,n&&l.isPointerDown&&s(e,t)&&(l.isPointerDown=!1,u(e))},c=(0,i.lZ)(t.current);return c.addEventListener("mousedown",e,!0),c.addEventListener("mouseup",r,!0),c.addEventListener("touchstart",e,!0),c.addEventListener("touchend",o,!0),()=>{c.removeEventListener("mousedown",e,!0),c.removeEventListener("mouseup",r,!0),c.removeEventListener("touchstart",e,!0),c.removeEventListener("touchend",o,!0)}},[n,t,u,l,a])}function s(e,t){var n;let r=e.target;return(!r||!!(0,i.lZ)(r).contains(r))&&!(null==(n=t.current)?void 0:n.contains(r))}},62929:function(e,t,n){"use strict";n.d(t,{J:function(){return l}});var r=n(29058),i=n(91982),o=n(59576),a=n(31053),s=n(52322),u={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},l=(0,r.G)((e,t)=>{let{as:n,viewBox:r,color:l="currentColor",focusable:c=!1,children:d,className:h,__css:p,...f}=e,m=(0,a.cx)("chakra-icon",h),g=(0,i.mq)("Icon",e),v={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l,...p,...g}},y=null!=r?r:u.viewBox;if(n&&"string"!=typeof n)return(0,s.jsx)(o.m.svg,{as:n,...v,...f});let b=null!=d?d:u.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:y,...v,...f,children:b})});l.displayName="Icon"},29705:function(e,t,n){"use strict";n.d(t,{h:function(){return o}});var r=n(67012),i=n(52322),o=(0,r.I)({displayName:"ExternalLinkIcon",path:(0,i.jsxs)("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[(0,i.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,i.jsx)("path",{d:"M15 3h6v6"}),(0,i.jsx)("path",{d:"M10 14L21 3"})]})})},82642:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r=(0,n(67012).I)({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})},33570:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var r=(0,n(67012).I)({d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",displayName:"ChevronRightIcon"})},56581:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(67012),i=n(52322),o=(0,r.I)({viewBox:"0 0 14 14",path:(0,i.jsx)("g",{fill:"currentColor",children:(0,i.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})})},83906:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=(0,n(67012).I)({displayName:"ChevronDownIcon",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})},46949:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=(0,n(67012).I)({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"})},69339:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=(0,n(67012).I)({d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",displayName:"ChevronLeftIcon"})},67012:function(e,t,n){"use strict";n.d(t,{I:function(){return d}});var r=n(29058),i=n(91982),o=n(59576),a=n(31053),s=n(52322),u={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},l=(0,r.G)((e,t)=>{let{as:n,viewBox:r,color:l="currentColor",focusable:c=!1,children:d,className:h,__css:p,...f}=e,m=(0,a.cx)("chakra-icon",h),g=(0,i.mq)("Icon",e),v={ref:t,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l,...p,...g}},y=null!=r?r:u.viewBox;if(n&&"string"!=typeof n)return(0,s.jsx)(o.m.svg,{as:n,...v,...f});let b=null!=d?d:u.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:y,...v,...f,children:b})});l.displayName="Icon";var c=n(2784);function d(e){let{viewBox:t="0 0 24 24",d:n,displayName:i,defaultProps:o={}}=e,a=c.Children.toArray(e.path),u=(0,r.G)((e,r)=>(0,s.jsx)(l,{ref:r,viewBox:t,...o,...e,children:a.length?a:(0,s.jsx)("path",{fill:"currentColor",d:n})}));return u.displayName=i,u}},75009:function(e,t,n){"use strict";n.d(t,{E:function(){return u}});var r=n(29058),i=n(52322),o=(0,r.G)(function(e,t){let{htmlWidth:n,htmlHeight:r,alt:o,...a}=e;return(0,i.jsx)("img",{width:n,height:r,ref:t,alt:o,...a})});o.displayName="NativeImage";var a=n(15596),s=n(59576),u=(0,r.G)(function(e,t){let{fallbackSrc:n,fallback:r,src:u,srcSet:l,align:c,fit:d,loading:h,ignoreFallback:p,crossOrigin:f,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:g,...v}=e,y=void 0!==n||void 0!==r,b=null!=h||p||!y,w=(0,a.d)({...e,crossOrigin:f,ignoreFallback:b}),k=(0,a.z)(w,m),x={ref:t,objectFit:d,objectPosition:c,...b?v:function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(v,["onError","onLoad"])};return k?r||(0,i.jsx)(s.m.img,{as:o,className:"chakra-image__placeholder",src:n,...x}):(0,i.jsx)(s.m.img,{as:o,src:u,srcSet:l,crossOrigin:f,loading:h,referrerPolicy:g,className:"chakra-image",...x})});u.displayName="Image"},15596:function(e,t,n){"use strict";n.d(t,{d:function(){return o},z:function(){return a}});var r=n(36140),i=n(2784);function o(e){let{loading:t,src:n,srcSet:o,onLoad:a,onError:s,crossOrigin:u,sizes:l,ignoreFallback:c}=e,[d,h]=(0,i.useState)("pending");(0,i.useEffect)(()=>{h(n?"loading":"pending")},[n]);let p=(0,i.useRef)(),f=(0,i.useCallback)(()=>{if(!n)return;m();let e=new Image;e.src=n,u&&(e.crossOrigin=u),o&&(e.srcset=o),l&&(e.sizes=l),t&&(e.loading=t),e.onload=e=>{m(),h("loaded"),null==a||a(e)},e.onerror=e=>{m(),h("failed"),null==s||s(e)},p.current=e},[n,u,o,l,a,s,t]),m=()=>{p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return(0,r.G)(()=>{if(!c)return"loading"===d&&f(),()=>{m()}},[d,f,c]),c?"loaded":d}var a=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t},20816:function(e,t,n){"use strict";n.d(t,{Z:function(){return c},x:function(){return d}});var r=n(74105),i=n(59576),o=n(29058),a=n(31053),s=n(52322),u=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),l=(0,o.G)(function(e,t){var n,i;let{placement:o="left",...a}=e,l=(0,r.m)(),c=l.field,d={["left"===o?"insetStart":"insetEnd"]:"0",width:null!=(n=null==c?void 0:c.height)?n:null==c?void 0:c.h,height:null!=(i=null==c?void 0:c.height)?i:null==c?void 0:c.h,fontSize:null==c?void 0:c.fontSize,...l.element};return(0,s.jsx)(u,{ref:t,__css:d,...a})});l.id="InputElement",l.displayName="InputElement";var c=(0,o.G)(function(e,t){let{className:n,...r}=e,i=(0,a.cx)("chakra-input__left-element",n);return(0,s.jsx)(l,{ref:t,placement:"left",className:i,...r})});c.id="InputLeftElement",c.displayName="InputLeftElement";var d=(0,o.G)(function(e,t){let{className:n,...r}=e,i=(0,a.cx)("chakra-input__right-element",n);return(0,s.jsx)(l,{ref:t,placement:"right",className:i,...r})});d.id="InputRightElement",d.displayName="InputRightElement"},85573:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(76874),i=n(29058),o=n(91982),a=n(84586),s=n(59576),u=n(31053),l=n(52322),c=(0,i.G)(function(e,t){let{htmlSize:n,...i}=e,c=(0,o.jC)("Input",i),d=(0,a.Lr)(i),h=(0,r.Y)(d),p=(0,u.cx)("chakra-input",e.className);return(0,l.jsx)(s.m.input,{size:n,...h,__css:c.field,ref:t,className:p})});c.displayName="Input",c.id="Input"},92768:function(e,t,n){"use strict";n.d(t,{xW:function(){return h}});var r=n(74105),i=n(59576),o=n(29058),a=n(31053),s=n(52322),u={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},l=(0,i.m)("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),c=(0,o.G)(function(e,t){var n;let{placement:i="left",...o}=e,a=null!=(n=u[i])?n:{},c=(0,r.m)();return(0,s.jsx)(l,{ref:t,...o,__css:{...c.addon,...a}})});c.displayName="InputAddon";var d=(0,o.G)(function(e,t){return(0,s.jsx)(c,{ref:t,placement:"left",...e,className:(0,a.cx)("chakra-input__left-addon",e.className)})});d.displayName="InputLeftAddon",d.id="InputLeftAddon";var h=(0,o.G)(function(e,t){return(0,s.jsx)(c,{ref:t,placement:"right",...e,className:(0,a.cx)("chakra-input__right-addon",e.className)})});h.displayName="InputRightAddon",h.id="InputRightAddon"},74105:function(e,t,n){"use strict";n.d(t,{B:function(){return m},m:function(){return f}});var r=n(9165),i=n(25578),o=n(29058),a=n(91982),s=n(84586),u=n(59576),l=n(31053),c=n(49),d=n(2784),h=n(52322),[p,f]=(0,r.k)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),m=(0,o.G)(function(e,t){let n=(0,a.jC)("Input",e),{children:r,className:o,...f}=(0,s.Lr)(e),m=(0,l.cx)("chakra-input__group",o),g={},v=(0,i.W)(r),y=n.field;v.forEach(e=>{var t,r;n&&(y&&"InputLeftElement"===e.type.id&&(g.paddingStart=null!=(t=y.height)?t:y.h),y&&"InputRightElement"===e.type.id&&(g.paddingEnd=null!=(r=y.height)?r:y.h),"InputRightAddon"===e.type.id&&(g.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(g.borderStartRadius=0))});let b=v.map(t=>{var n,r;let i=(0,c.o)({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(r=t.props)?void 0:r.variant)||e.variant});return"Input"!==t.type.id?(0,d.cloneElement)(t,i):(0,d.cloneElement)(t,Object.assign(i,g,t.props))});return(0,h.jsx)(u.m.div,{className:m,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...f,children:(0,h.jsx)(p,{value:n,children:b})})});m.displayName="InputGroup"},77533:function(e,t,n){"use strict";n.d(t,{x:function(){return c}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(49),l=n(52322),c=(0,r.G)(function(e,t){let n=(0,i.mq)("Text",e),{className:r,align:c,decoration:d,casing:h,...p}=(0,o.Lr)(e),f=(0,u.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,l.jsx)(a.m.p,{ref:t,className:(0,s.cx)("chakra-text",e.className),...f,...p,__css:n})});c.displayName="Text"},29117:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(43297),i=n(29058),o=n(52322),a=(0,i.G)((e,t)=>(0,o.jsx)(r.K,{align:"center",...e,direction:"row",ref:t}));a.displayName="HStack"},97010:function(e,t,n){"use strict";n.d(t,{HC:function(){return m},QI:function(){return f},aV:function(){return p}});var r=n(62929),i=n(9165),o=n(25578),a=n(29058),s=n(91982),u=n(84586),l=n(59576),c=n(52322),[d,h]=(0,i.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=(0,a.G)(function(e,t){let n=(0,s.jC)("List",e),{children:r,styleType:i="none",stylePosition:a,spacing:h,...p}=(0,u.Lr)(e),f=(0,o.W)(r);return(0,c.jsx)(d,{value:n,children:(0,c.jsx)(l.m.ul,{ref:t,listStyleType:i,listStylePosition:a,role:"list",__css:{...n.container,...h?{"& > *:not(style) ~ *:not(style)":{mt:h}}:{}},...p,children:f})})});p.displayName="List",(0,a.G)((e,t)=>{let{as:n,...r}=e;return(0,c.jsx)(p,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})}).displayName="OrderedList";var f=(0,a.G)(function(e,t){let{as:n,...r}=e;return(0,c.jsx)(p,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...r})});f.displayName="UnorderedList";var m=(0,a.G)(function(e,t){let n=h();return(0,c.jsx)(l.m.li,{ref:t,...e,__css:n.item})});m.displayName="ListItem",(0,a.G)(function(e,t){let n=h();return(0,c.jsx)(r.J,{ref:t,role:"presentation",...e,__css:n.icon})}).displayName="ListIcon"},89099:function(e,t,n){"use strict";n.d(t,{E:function(){return u},U:function(){return l}});var r=n(31053),i=n(29058),o=n(59576),a=n(2784),s=n(52322),u=(0,i.G)(function(e,t){let{spacing:n="0.5rem",spacingX:i,spacingY:u,children:c,justify:d,direction:h,align:p,className:f,shouldWrapChildren:m,...g}=e,v=(0,a.useMemo)(()=>m?a.Children.map(c,(e,t)=>(0,s.jsx)(l,{children:e},t)):c,[c,m]);return(0,s.jsx)(o.m.div,{ref:t,className:(0,r.cx)("chakra-wrap",f),...g,children:(0,s.jsx)(o.m.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:d,alignItems:p,flexDirection:h,listStyleType:"none",gap:n,columnGap:i,rowGap:u,padding:"0"},children:v})})});u.displayName="Wrap";var l=(0,i.G)(function(e,t){let{className:n,...i}=e;return(0,s.jsx)(o.m.li,{ref:t,__css:{display:"flex",alignItems:"flex-start"},className:(0,r.cx)("chakra-wrap__listitem",n),...i})});l.displayName="WrapItem"},74409:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(52322),l=(0,r.G)(function(e,t){let n=(0,i.mq)("Heading",e),{className:r,...l}=(0,o.Lr)(e);return(0,u.jsx)(a.m.h2,{ref:t,className:(0,s.cx)("chakra-heading",e.className),...l,__css:n})});l.displayName="Heading"},36474:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r=(0,n(59576).m)("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});r.displayName="Spacer"},5740:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(52322),l=(0,r.G)(function(e,t){let n=(0,i.mq)("Kbd",e),{className:r,...l}=(0,o.Lr)(e);return(0,u.jsx)(a.m.kbd,{ref:t,className:(0,s.cx)("chakra-kbd",r),...l,__css:{fontFamily:"mono",...n}})});l.displayName="Kbd"},42822:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(59576),i=n(29058),o=n(52322),a=(0,r.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";var s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,i.G)(function(e,t){let{axis:n="both",...i}=e;return(0,o.jsx)(r.m.div,{ref:t,__css:s[n],...i,position:"absolute"})})},69251:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n(29058),i=n(59576),o=n(52322),a=(0,r.G)(function(e,t){let{templateAreas:n,gap:r,rowGap:a,columnGap:s,column:u,row:l,autoFlow:c,autoRows:d,templateRows:h,autoColumns:p,templateColumns:f,...m}=e;return(0,o.jsx)(i.m.div,{ref:t,__css:{display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:a,gridColumnGap:s,gridAutoColumns:p,gridColumn:u,gridRow:l,gridAutoFlow:c,gridAutoRows:d,gridTemplateRows:h,gridTemplateColumns:f},...m})});a.displayName="Grid"},11082:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(52322),l=(0,r.G)(function(e,t){let n=(0,i.mq)("Link",e),{className:r,isExternal:l,...c}=(0,o.Lr)(e);return(0,u.jsx)(a.m.a,{target:l?"_blank":void 0,rel:l?"noopener":void 0,ref:t,className:(0,s.cx)("chakra-link",r),...c,__css:n})});l.displayName="Link"},38035:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(29058),i=n(59576),o=n(52322),a=(0,r.G)(function(e,t){let{direction:n,align:r,justify:a,wrap:s,basis:u,grow:l,shrink:c,...d}=e;return(0,o.jsx)(i.m.div,{ref:t,__css:{display:"flex",flexDirection:n,alignItems:r,justifyContent:a,flexWrap:s,flexBasis:u,flexGrow:l,flexShrink:c},...d})});a.displayName="Flex"},62453:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(59576),i=n(52322),o=e=>(0,i.jsx)(r.m.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o.displayName="StackDivider"},44438:function(e,t,n){"use strict";n.d(t,{E:function(){return l}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(52322),l=(0,r.G)(function(e,t){let n=(0,i.mq)("Code",e),{className:r,...l}=(0,o.Lr)(e);return(0,u.jsx)(a.m.code,{ref:t,className:(0,s.cx)("chakra-code",e.className),...l,__css:{display:"inline-block",...n}})});l.displayName="Code"},20437:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r=n(69251),i=n(29058),o=n(91148),a=n(48929),s=n(49456),u=n(52322),l=(0,i.G)(function(e,t){let{columns:n,spacingX:i,spacingY:l,spacing:c,minChildWidth:d,...h}=e,p=(0,o.F)(),f=d?(0,s.XQ)(d,e=>{let t=(0,a.LP)("sizes",e,"number"==typeof e?`${e}px`:e)(p);return null===e?null:`repeat(auto-fit, minmax(${t}, 1fr))`}):(0,s.XQ)(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,u.jsx)(r.r,{ref:t,gap:c,columnGap:i,rowGap:l,templateColumns:f,...h})});l.displayName="SimpleGrid"},11881:function(e,t,n){"use strict";n.d(t,{A:function(){return s},f:function(){return u}});var r=n(29058),i=n(59576),o=n(31053),a=n(52322),s=(0,r.G)(function(e,t){let{isExternal:n,target:r,rel:s,className:u,...l}=e;return(0,a.jsx)(i.m.a,{...l,ref:t,className:(0,o.cx)("chakra-linkbox__overlay",u),rel:n?"noopener noreferrer":s,target:n?"_blank":r,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})}),u=(0,r.G)(function(e,t){let{className:n,...r}=e;return(0,a.jsx)(i.m.div,{ref:t,position:"relative",...r,className:(0,o.cx)("chakra-linkbox",n),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})})},17993:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(43297),i=n(29058),o=n(52322),a=(0,i.G)((e,t)=>(0,o.jsx)(r.K,{align:"center",...e,direction:"column",ref:t}));a.displayName="VStack"},28535:function(e,t,n){"use strict";n.d(t,{Cd:function(){return u},xu:function(){return a}});var r=n(59576),i=n(29058),o=n(52322),a=(0,r.m)("div");a.displayName="Box";var s=(0,i.G)(function(e,t){let{size:n,centerContent:r=!0,...i}=e;return(0,o.jsx)(a,{ref:t,boxSize:n,__css:{...r?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});s.displayName="Square";var u=(0,i.G)(function(e,t){let{size:n,...r}=e;return(0,o.jsx)(s,{size:n,ref:t,borderRadius:"9999px",...r})});u.displayName="Circle"},74008:function(e,t,n){"use strict";n.d(t,{i:function(){return l}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(52322),l=(0,r.G)(function(e,t){let{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:l,borderRightWidth:c,borderWidth:d,borderStyle:h,borderColor:p,...f}=(0,i.mq)("Divider",e),{className:m,orientation:g="horizontal",__css:v,...y}=(0,o.Lr)(e);return(0,u.jsx)(a.m.hr,{ref:t,"aria-orientation":g,...y,__css:{...f,border:"0",borderColor:p,borderStyle:h,...{vertical:{borderLeftWidth:n||c||d||"1px",height:"100%"},horizontal:{borderBottomWidth:r||l||d||"1px",width:"100%"}}[g],...v},className:(0,s.cx)("chakra-divider",m)})});l.displayName="Divider"},82554:function(e,t,n){"use strict";n.d(t,{C:function(){return l}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(52322),l=(0,r.G)(function(e,t){let n=(0,i.mq)("Badge",e),{className:r,...l}=(0,o.Lr)(e);return(0,u.jsx)(a.m.span,{ref:t,className:(0,s.cx)("chakra-badge",e.className),...l,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});l.displayName="Badge"},43297:function(e,t,n){"use strict";n.d(t,{K:function(){return d}});var r=n(59576),i=n(52322),o=e=>(0,i.jsx)(r.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});o.displayName="StackItem";var a=n(49456),s=n(25578),u=n(31053),l=n(29058),c=n(2784),d=(0,l.G)((e,t)=>{let{isInline:n,direction:l,align:d,justify:h,spacing:p="0.5rem",wrap:f,children:m,divider:g,className:v,shouldWrapChildren:y,...b}=e,w=n?"row":null!=l?l:"column",k=(0,c.useMemo)(()=>(function(e){let{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,a.XQ)(n,e=>r[e])}})({spacing:p,direction:w}),[p,w]),x=!!g,_=!y&&!x,S=(0,c.useMemo)(()=>{let e=(0,s.W)(m);return _?e:e.map((t,n)=>{let r=void 0!==t.key?t.key:n,a=n+1===e.length,s=(0,i.jsx)(o,{children:t},r),u=y?s:t;if(!x)return u;let l=(0,c.cloneElement)(g,{__css:k});return(0,i.jsxs)(c.Fragment,{children:[u,a?null:l]},r)})},[g,k,x,_,y,m]),E=(0,u.cx)("chakra-stack",v);return(0,i.jsx)(r.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:h,flexDirection:w,flexWrap:f,gap:x?void 0:p,className:E,...b,children:S})});d.displayName="Stack"},30523:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(29058),i=n(59576),o=n(49),a=n(49456),s=n(52322);function u(e){return(0,a.XQ)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}var l=(0,r.G)(function(e,t){let{area:n,colSpan:r,colStart:a,colEnd:l,rowEnd:c,rowSpan:d,rowStart:h,...p}=e,f=(0,o.o)({gridArea:n,gridColumn:u(r),gridRow:u(d),gridColumnStart:a,gridColumnEnd:l,gridRowStart:h,gridRowEnd:c});return(0,s.jsx)(i.m.div,{ref:t,__css:f,...p})});l.displayName="GridItem"},82729:function(e,t,n){"use strict";n.d(t,{o:function(){return l}});var r=n(29058),i=n(59576),o=n(49456),a=n(31053),s=n(2784),u=n(52322),l=(0,r.G)(function(e,t){let{ratio:n=4/3,children:r,className:l,...c}=e,d=s.Children.only(r),h=(0,a.cx)("chakra-aspect-ratio",l);return(0,u.jsx)(i.m.div,{ref:t,position:"relative",className:h,_before:{height:0,content:'""',display:"block",paddingBottom:(0,o.XQ)(n,e=>`${1/e*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...c,children:d})});l.displayName="AspectRatio"},4028:function(e,t,n){"use strict";function r(e){let{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!n||!!r||"keepMounted"===i&&!!t}n.d(t,{k:function(){return r}})},94207:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(38317),i=n(2784);function o(e,t={}){let{ssr:n=!0,fallback:o}=t,{getWindow:a}=(0,r.O)(),s=Array.isArray(e)?e:[e],u=Array.isArray(o)?o:[o];u=u.filter(e=>null!=e);let[l,c]=(0,i.useState)(()=>s.map((e,t)=>({media:e,matches:n?!!u[t]:a().matchMedia(e).matches})));return(0,i.useEffect)(()=>{let e=a();c(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),n=e=>{c(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)})}},[a]),l.map(e=>e.matches)}},24772:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(49456),i=n(94207),o=n(91148),a=n(31053);function s(e,t){var n;let s=function(e){var t,n;let r=(0,a.Kn)(e)?e:{fallback:null!=e?e:"base"},s=(0,o.F)().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),u=s.map(e=>e.breakpoint===r.fallback),l=(0,i.a)(s.map(e=>e.query),{fallback:u,ssr:r.ssr}).findIndex(e=>!0==e);return null!=(n=null==(t=s[l])?void 0:t.breakpoint)?n:r.fallback}((0,a.Kn)(t)?t:{fallback:null!=t?t:"base"}),u=(0,o.F)();if(!s)return;let l=Array.from((null==(n=u.__breakpoints)?void 0:n.keys)||[]);return function(e,t,n=r.AV){let i=Object.keys(e).indexOf(t);if(-1!==i)return e[t];let o=n.indexOf(t);for(;o>=0;){let t=n[o];if(e.hasOwnProperty(t)){i=o;break}o-=1}if(-1!==i)return e[n[i]]}(Array.isArray(e)?Object.fromEntries(Object.entries((0,r.Yq)(e,l)).map(([e,t])=>[e,t])):e,s,l)}},25481:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(10625),i=n(29058),o=n(59576),a=n(52322),s=(0,i.G)((e,t)=>{let n=(0,r.x)();return(0,a.jsx)(o.m.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});s.displayName="MenuCommand";var u=n(57442),l=n(32509),c=n(35743),d=n(31053),h=(0,i.G)((e,t)=>{let{icon:n,iconSpacing:r="0.75rem",command:i,commandSpacing:o="0.75rem",children:h,...p}=e,f=(0,c.iX)(p,t),m=n||i?(0,a.jsx)("span",{style:{pointerEvents:"none",flex:1},children:h}):h;return(0,a.jsxs)(u.C,{...f,className:(0,d.cx)("chakra-menu__menuitem",f.className),children:[n&&(0,a.jsx)(l.O,{fontSize:"0.8em",marginEnd:r,children:n}),m,i&&(0,a.jsx)(s,{marginStart:o,children:i})]})});h.displayName="MenuItem"},99058:function(e,t,n){"use strict";n.d(t,{q:function(){return h}});var r=n(10625),i=n(35743),o=n(31053),a=n(59576),s=n(29058),u=n(7165),l=n(52322),c={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},d=(0,a.m)(u.E.div),h=(0,s.G)(function(e,t){var n,s;let{rootProps:u,motionProps:h,...p}=e,{isOpen:f,onTransitionEnd:m,unstable__animationState:g}=(0,i.Xh)(),v=(0,i._l)(p,t),y=(0,i.Qh)(u),b=(0,r.x)();return(0,l.jsx)(a.m.div,{...y,__css:{zIndex:null!=(s=e.zIndex)?s:null==(n=b.list)?void 0:n.zIndex},children:(0,l.jsx)(d,{variants:c,initial:!1,animate:f?"enter":"exit",__css:{outline:0,...b.list},...h,className:(0,o.cx)("chakra-menu__menu-list",v.className),...v,onUpdate:m,onAnimationComplete:(0,o.PP)(g.onComplete,v.onAnimationComplete)})})});h.displayName="MenuList"},39237:function(e,t,n){"use strict";n.d(t,{i:function(){return c}});var r=n(57442),i=n(32509),o=n(35743),a=n(29058),s=n(31053),u=n(52322),l=e=>(0,u.jsx)("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:(0,u.jsx)("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),c=(0,a.G)((e,t)=>{let{icon:n,iconSpacing:a="0.75rem",...c}=e,d=(0,o.gO)(c,t);return(0,u.jsxs)(r.C,{...d,className:(0,s.cx)("chakra-menu__menuitem-option",c.className),children:[null!==n&&(0,u.jsx)(i.O,{fontSize:"0.8em",marginEnd:a,opacity:e.isChecked?1:0,children:n||(0,u.jsx)(l,{})}),(0,u.jsx)("span",{style:{flex:1},children:d.children})]})});c.id="MenuItemOption",c.displayName="MenuItemOption"},27599:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=n(10625),i=n(59576),o=n(31053),a=n(52322),s=e=>{let{className:t,...n}=e,s=(0,r.x)();return(0,a.jsx)(i.m.hr,{"aria-orientation":"horizontal",className:(0,o.cx)("chakra-menu__divider",t),...n,__css:s.divider})};s.displayName="MenuDivider"},32509:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(10625),i=n(59576),o=n(31053),a=n(2784),s=n(52322),u=e=>{let{className:t,children:n,...u}=e,l=(0,r.x)(),c=a.Children.only(n),d=(0,a.isValidElement)(c)?(0,a.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,o.cx)("chakra-menu__icon",c.props.className)}):null,h=(0,o.cx)("chakra-menu__icon-wrapper",t);return(0,s.jsx)(i.m.span,{className:h,...u,__css:l.icon,children:d})};u.displayName="MenuIcon"},44035:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(69024),i=n(35743),o=n(31053),a=n(52322),s=e=>{let{className:t,title:n,...s}=e,u=(0,i.Vg)(s);return(0,a.jsx)(r.k,{title:n,className:(0,o.cx)("chakra-menu__option-group",t),...u})};s.displayName="MenuOptionGroup"},57442:function(e,t,n){"use strict";n.d(t,{C:function(){return u}});var r=n(10625),i=n(29058),o=n(59576),a=n(2784),s=n(52322),u=(0,i.G)((e,t)=>{let{type:n,...i}=e,u=(0,r.x)(),l=i.as||n?null!=n?n:void 0:"button",c=(0,a.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...u.item}),[u.item]);return(0,s.jsx)(o.m.button,{ref:t,type:l,...i,__css:c})})},69024:function(e,t,n){"use strict";n.d(t,{k:function(){return u}});var r=n(10625),i=n(29058),o=n(59576),a=n(31053),s=n(52322),u=(0,i.G)((e,t)=>{let{title:n,children:i,className:u,...l}=e,c=(0,a.cx)("chakra-menu__group__title",u),d=(0,r.x)();return(0,s.jsxs)("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&(0,s.jsx)(o.m.p,{className:c,...l,__css:d.groupTitle,children:n}),i]})});u.displayName="MenuGroup"},35743:function(e,t,n){"use strict";n.d(t,{wN:function(){return w},Kb:function(){return S},H9:function(){return j},zZ:function(){return O},Xh:function(){return E},iX:function(){return R},_l:function(){return A},gO:function(){return M},Vg:function(){return F},Qh:function(){return P}});var r=n(2784),i=n(30350),o=n(81550),a=n(23964),s=n(70339),u=n(36502),l=n(90359);function c(e,t){var n;let r=e.target;return(!r||!!d(r).contains(r))&&!(null==(n=t.current)?void 0:n.contains(r))}function d(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var h=n(87053),p=n(9165),f=n(25578),m=n(59572),g=n(3171),v=n(85244),y=n(31053),b=n(4028),[w,k,x,_]=(0,o.n)(),[S,E]=(0,p.k)({strict:!1,name:"MenuContext"});function D(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function C(e){return D(e).activeElement===e}function j(e={}){let{id:t,closeOnSelect:n=!0,closeOnBlur:i=!0,initialFocusRef:o,autoSelect:p=!0,isLazy:f,isOpen:m,defaultIsOpen:v,onClose:y,onOpen:b,placement:w="bottom-start",lazyBehavior:k="unmount",direction:_,computePositionOnMount:S=!1,...E}=e,C=(0,r.useRef)(null),j=(0,r.useRef)(null),O=x(),T=(0,r.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=C.current)||e.focus({preventScroll:!1})})},[]),A=(0,r.useCallback)(()=>{let e=setTimeout(()=>{var e;if(o)null==(e=o.current)||e.focus();else{let e=O.firstEnabled();e&&z(e.index)}});W.current.add(e)},[O,o]),P=(0,r.useCallback)(()=>{let e=setTimeout(()=>{let e=O.lastEnabled();e&&z(e.index)});W.current.add(e)},[O]),R=(0,r.useCallback)(()=>{null==b||b(),p?A():T()},[p,A,T,b]),{isOpen:M,onOpen:F,onClose:N,onToggle:I}=(0,u.q)({isOpen:m,defaultIsOpen:v,onClose:y,onOpen:R});!function(e){let{ref:t,handler:n,enabled:i=!0}=e,o=(0,l.W)(n),a=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,r.useEffect)(()=>{if(!i)return;let e=e=>{c(e,t)&&(a.isPointerDown=!0)},r=e=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&n&&c(e,t)&&(a.isPointerDown=!1,o(e))},s=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&c(e,t)&&(a.isPointerDown=!1,o(e))},u=d(t.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",r,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",s,!0),()=>{u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",r,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",s,!0)}},[n,t,o,a,i])}({enabled:M&&i,ref:C,handler:e=>{var t;(null==(t=j.current)?void 0:t.contains(e.target))||N()}});let L=(0,s.D)({...E,enabled:M||S,placement:w,direction:_}),[B,z]=(0,r.useState)(-1);(0,g.r)(()=>{M||z(-1)},[M]),(0,a.C)(C,{focusRef:j,visible:M,shouldFocus:!0});let U=(0,h.h)({isOpen:M,ref:C}),[q,$]=function(e,...t){let n=(0,r.useId)(),i=e||n;return(0,r.useMemo)(()=>t.map(e=>`${e}-${i}`),[i,t])}(t,"menu-button","menu-list"),H=(0,r.useCallback)(()=>{F(),T()},[F,T]),W=(0,r.useRef)(new Set([]));(0,r.useEffect)(()=>{let e=W.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]);let V=(0,r.useCallback)(()=>{F(),A()},[A,F]),G=(0,r.useCallback)(()=>{F(),P()},[F,P]),Y=(0,r.useCallback)(()=>{var e,t;let n=D(C.current),r=null==(e=C.current)?void 0:e.contains(n.activeElement);if(!(M&&!r))return;let i=null==(t=O.item(B))?void 0:t.node;null==i||i.focus({preventScroll:!0})},[M,B,O]),Z=(0,r.useRef)(null);return{openAndFocusMenu:H,openAndFocusFirstItem:V,openAndFocusLastItem:G,onTransitionEnd:Y,unstable__animationState:U,descendants:O,popper:L,buttonId:q,menuId:$,forceUpdate:L.forceUpdate,orientation:"vertical",isOpen:M,onToggle:I,onOpen:F,onClose:N,menuRef:C,buttonRef:j,focusedIndex:B,closeOnSelect:n,closeOnBlur:i,autoSelect:p,setFocusedIndex:z,isLazy:f,lazyBehavior:k,initialFocusRef:o,rafId:Z}}function O(e={},t=null){let n=E(),{onToggle:i,popper:o,openAndFocusFirstItem:a,openAndFocusLastItem:s}=n,u=(0,r.useCallback)(e=>{let t={Enter:a,ArrowDown:a,ArrowUp:s}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[a,s]);return{...e,ref:(0,v.lq)(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":(0,y.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,y.v0)(e.onClick,i),onKeyDown:(0,y.v0)(e.onKeyDown,u)}}function T(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function A(e={},t=null){let n=E();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");let{focusedIndex:i,setFocusedIndex:o,menuRef:a,isOpen:s,onClose:u,menuId:l,isLazy:c,lazyBehavior:d,unstable__animationState:h}=n,p=k(),f=function(e={}){let{timeout:t=300,preventDefault:n=()=>!0}=e,[i,o]=(0,r.useState)([]),a=(0,r.useRef)(),s=()=>{a.current&&(clearTimeout(a.current),a.current=null)},u=()=>{s(),a.current=setTimeout(()=>{o([]),a.current=null},t)};return(0,r.useEffect)(()=>s,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...i];e.pop(),o(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let r=i.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),o(r),e(r.join("")),u()}}}}({preventDefault:e=>" "!==e.key&&T(e.target)}),m=(0,r.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:u,ArrowDown:()=>{let e=p.nextEnabled(i);e&&o(e.index)},ArrowUp:()=>{let e=p.prevEnabled(i);e&&o(e.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let n=f(e=>{let t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));let i=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let t;return i.includes(r)?((t=i.indexOf(r)+1)===i.length&&(t=0),i[t]):(t=e.indexOf(i[0]),e[t])}return r}(p.values(),e,e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?n:""},p.item(i));t&&o(p.indexOf(t.node))});T(e.target)&&n(e)},[p,i,f,u,o]),g=(0,r.useRef)(!1);s&&(g.current=!0);let w=(0,b.k)({wasSelected:g.current,enabled:c,mode:d,isSelected:h.present});return{...e,ref:(0,v.lq)(a,t),children:w?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,y.v0)(e.onKeyDown,m)}}function P(e={}){let{popper:t,isOpen:n}=E();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function R(e={},t=null){let{onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onClick:s,onFocus:u,isDisabled:l,isFocusable:c,closeOnSelect:d,type:h,...p}=e,{setFocusedIndex:f,focusedIndex:m,closeOnSelect:y,onClose:b,menuRef:w,isOpen:k,menuId:x,rafId:S}=E(),D=(0,r.useRef)(null),j=`${x}-menuitem-${(0,r.useId)()}`,{index:O,register:A}=_({disabled:l&&!c}),P=(0,r.useCallback)(e=>{null==n||n(e),l||f(O)},[f,O,l,n]),R=(0,r.useCallback)(e=>{null==o||o(e),D.current&&!C(D.current)&&P(e)},[P,o]),M=(0,r.useCallback)(e=>{null==a||a(e),l||f(-1)},[f,l,a]),F=(0,r.useCallback)(e=>{null==s||s(e),T(e.currentTarget)&&(null!=d?d:y)&&b()},[b,s,y,d]),N=(0,r.useCallback)(e=>{null==u||u(e),f(O)},[f,u,O]),I=O===m,L=l&&!c;(0,g.r)(()=>{if(k)return I&&!L&&D.current?(S.current&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{var e;null==(e=D.current)||e.focus({preventScroll:!0}),S.current=null})):w.current&&!C(w.current)&&w.current.focus({preventScroll:!0}),()=>{S.current&&cancelAnimationFrame(S.current)}},[I,L,w,k]);let B=(0,i.h)({onClick:F,onFocus:N,onMouseEnter:P,onMouseMove:R,onMouseLeave:M,ref:(0,v.lq)(A,D,t),isDisabled:l,isFocusable:c});return{...p,...B,type:null!=h?h:B.type,id:j,role:"menuitem",tabIndex:I?0:-1}}function M(e={},t=null){let{type:n="radio",isChecked:r,...i}=e;return{...R(i,t),role:`menuitem${n}`,"aria-checked":r}}function F(e={}){let{children:t,type:n="radio",value:i,defaultValue:o,onChange:a,...s}=e,u="radio"===n,[l,c]=(0,m.T)({defaultValue:null!=o?o:u?"":[],value:i,onChange:a}),d=(0,r.useCallback)(e=>{"radio"===n&&"string"==typeof l&&c(e),"checkbox"===n&&Array.isArray(l)&&c(l.includes(e)?l.filter(t=>t!==e):l.concat(e))},[l,c,n]),h=(0,f.W)(t).map(e=>{if("MenuItemOption"!==e.type.id)return e;let t="radio"===n?e.props.value===l:l.includes(e.props.value);return(0,r.cloneElement)(e,{type:n,onClick:t=>{var n,r;d(e.props.value),null==(r=(n=e.props).onClick)||r.call(n,t)},isChecked:t})});return{...s,children:h}}},10625:function(e,t,n){"use strict";n.d(t,{v:function(){return p},x:function(){return h}});var r=n(35743),i=n(9165),o=n(91982),a=n(84586),s=n(91148),u=n(31053),l=n(2784),c=n(52322),[d,h]=(0,i.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),p=e=>{let{children:t}=e,n=(0,o.jC)("Menu",e),i=(0,a.Lr)(e),{direction:h}=(0,s.F)(),{descendants:p,...f}=(0,r.H9)({...i,direction:h}),m=(0,l.useMemo)(()=>f,[f]),{isOpen:g,onClose:v,forceUpdate:y}=m;return(0,c.jsx)(r.wN,{value:p,children:(0,c.jsx)(r.Kb,{value:m,children:(0,c.jsx)(d,{value:n,children:(0,u.Pu)(t,{isOpen:g,onClose:v,forceUpdate:y})})})})};p.displayName="Menu"},67046:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(10625),i=n(35743),o=n(29058),a=n(59576),s=n(31053),u=n(52322),l=(0,o.G)((e,t)=>{let n=(0,r.x)();return(0,u.jsx)(a.m.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),c=(0,o.G)((e,t)=>{let{children:n,as:r,...o}=e,c=(0,i.zZ)(o,t),d=r||l;return(0,u.jsx)(d,{...c,className:(0,s.cx)("chakra-menu__menu-button",e.className),children:(0,u.jsx)(a.m.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},2338:function(e,t,n){"use strict";n.d(t,{o:function(){return u}});var r=n(92850),i=n(81672),o=n(31053),a=n(29058),s=n(52322),u=(0,a.G)((e,t)=>{let{onClick:n,className:a,...u}=e,{onClose:l}=(0,r.vR)(),c=(0,o.cx)("chakra-modal__close-btn",a),d=(0,r.I_)();return(0,s.jsx)(i.P,{ref:t,__css:d.closeButton,className:c,onClick:(0,o.v0)(n,e=>{e.stopPropagation(),l()}),...u})});u.displayName="ModalCloseButton"},54326:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var r=n(92850),i=n(31053),o=n(29058),a=n(59576),s=n(2784),u=n(52322),l=(0,o.G)((e,t)=>{let{className:n,...o}=e,{headerId:l,setHeaderMounted:c}=(0,r.vR)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__header",n),h={flex:0,...(0,r.I_)().header};return(0,u.jsx)(a.m.header,{ref:t,className:d,id:l,...o,__css:h})});l.displayName="ModalHeader"},73751:function(e,t,n){"use strict";n.d(t,{s:function(){return h}});var r=n(32981),i=n(34221),o=n(92850),a=n(31053),s=n(59576),u=n(29058),l=n(55070),c=n(52322),d=(0,s.m)(l.M),h=(0,u.G)((e,t)=>{let{className:n,children:u,motionProps:l,containerProps:h,...p}=e,{getDialogProps:f,getDialogContainerProps:m,isOpen:g}=(0,o.vR)(),v=f(p,t),y=m(h),b=(0,a.cx)("chakra-modal__content",n),w=(0,o.I_)(),k={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...w.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...w.dialogContainer},{placement:_}=(0,r.M)();return(0,c.jsx)(i.M,{children:(0,c.jsx)(s.m.div,{...y,className:"chakra-modal__content-container",__css:x,children:(0,c.jsx)(d,{motionProps:l,direction:_,in:g,className:b,...v,__css:k,children:u})})})});h.displayName="DrawerContent"},76220:function(e,t,n){"use strict";n.d(t,{m:function(){return s},$:function(){return u}});var r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n),a=n(2784),s=new class{constructor(){o(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function u(e,t){let[n,r]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let n=e.current;if(n)return t&&r(s.add(n)),()=>{s.remove(n),r(0)}},[t,e]),n}},55199:function(e,t,n){"use strict";n.d(t,{h:function(){return y}});var r=n(59576),i=n(41914),o=n(31053),a=n(88241),s=n(7165),u=n(2784),l=n(52322),c={initial:"initial",animate:"enter",exit:"exit",variants:{initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,x:e,y:t,transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:a})=>{var s;let u={x:t,y:e};return{opacity:0,transition:null!=(s=null==n?void 0:n.exit)?s:i.p$.exit(i.Sh.exit,a),...o?{...u,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...u,...null==r?void 0:r.exit}}}}}};(0,u.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,className:u,offsetX:d=0,offsetY:h=8,transition:p,transitionEnd:f,delay:m,...g}=e,v=!n||r&&n,y=r||n?"enter":"exit",b={offsetX:d,offsetY:h,reverse:i,transition:p,transitionEnd:f,delay:m};return(0,l.jsx)(a.M,{custom:b,children:v&&(0,l.jsx)(s.E.div,{ref:t,className:(0,o.cx)("chakra-offset-slide",u),custom:b,...c,animate:y,...g})})}).displayName="SlideFade";var d={initial:"exit",animate:"enter",exit:"exit",variants:{exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(a=null==n?void 0:n.exit)?a:i.p$.exit(i.Sh.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:i.p$.enter(i.Sh.enter,n),transitionEnd:null==e?void 0:e.enter}}}};(0,u.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,reverse:i=!0,initialScale:u=.95,className:c,transition:h,transitionEnd:p,delay:f,...m}=e,g=!n||r&&n,v=r||n?"enter":"exit",y={initialScale:u,reverse:i,transition:h,transitionEnd:p,delay:f};return(0,l.jsx)(a.M,{custom:y,children:g&&(0,l.jsx)(s.E.div,{ref:t,className:(0,o.cx)("chakra-offset-slide",c),...d,animate:v,custom:y,...m})})}).displayName="ScaleFade";var h={slideInBottom:{...c,custom:{offsetY:16,reverse:!0}},slideInRight:{...c,custom:{offsetX:16,reverse:!0}},slideInTop:{...c,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...c,custom:{offsetX:-16,reverse:!0}},scale:{...d,custom:{initialScale:.95,reverse:!0}},none:{}},p=(0,r.m)(s.E.section),f=e=>h[e||"none"],m=(0,u.forwardRef)((e,t)=>{let{preset:n,motionProps:r=f(n),...i}=e;return(0,l.jsx)(p,{ref:t,...r,...i})});m.displayName="ModalTransition";var g=n(34221),v=n(92850),y=(0,n(29058).G)((e,t)=>{let{className:n,children:i,containerProps:a,motionProps:s,...u}=e,{getDialogProps:c,getDialogContainerProps:d}=(0,v.vR)(),h=c(u,t),p=d(a),f=(0,o.cx)("chakra-modal__content",n),y=(0,v.I_)(),b={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...y.dialog},w={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...y.dialogContainer},{motionPreset:k}=(0,v.vR)();return(0,l.jsx)(g.M,{children:(0,l.jsx)(r.m.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:(0,l.jsx)(m,{preset:k,motionProps:s,className:f,...h,__css:b,children:i})})})});y.displayName="ModalContent"},26468:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(92850),i=n(31053),o=n(59576),a=n(29058),s=n(78071),u=n(7165),l=n(52322),c=(0,o.m)(u.E.div),d=(0,a.G)((e,t)=>{let{className:n,transition:o,motionProps:a,...u}=e,d=(0,i.cx)("chakra-modal__overlay",n),h={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,r.I_)().overlay},{motionPreset:p}=(0,r.vR)(),f="none"===p?{}:s.u;return(0,l.jsx)(c,{...a||f,__css:h,ref:t,className:d,...u})});d.displayName="ModalOverlay"},32981:function(e,t,n){"use strict";n.d(t,{M:function(){return u},d:function(){return c}});var r=n(92850),i=n(9165),o=n(91148),a=n(52322),[s,u]=(0,i.k)(),l={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function c(e){var t;let{isOpen:n,onClose:i,placement:u="right",children:c,...d}=e,h=(0,o.F)(),p=null==(t=h.components)?void 0:t.Drawer,f=function(e,t){var n,r;if(e)return null!=(r=null==(n=l[e])?void 0:n[t])?r:e}(u,h.direction);return(0,a.jsx)(s,{value:{placement:f},children:(0,a.jsx)(r.u_,{isOpen:n,onClose:i,styleConfig:p,...d,children:c})})}},92850:function(e,t,n){"use strict";n.d(t,{u_:function(){return v},vR:function(){return g},I_:function(){return f}});var r=n(76220),i=n(31053),o=n(85244),a=n(49732),s=n(2784),u=n(332),l=n(9165),c=n(91982),d=n(88241),h=n(52322),[p,f]=(0,l.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[m,g]=(0,l.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),v=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:l,autoFocus:f,trapFocus:g,initialFocusRef:v,finalFocusRef:y,returnFocusOnClose:b,blockScrollOnMount:w,allowPinchZoom:k,preserveScrollBarGap:x,motionPreset:_,lockFocusAcrossFrames:S,onCloseComplete:E}=t,D=(0,c.jC)("Modal",t),C={...function(e){let{isOpen:t,onClose:n,id:u,closeOnOverlayClick:l=!0,closeOnEsc:c=!0,useInert:d=!0,onOverlayClick:h,onEsc:p}=e,f=(0,s.useRef)(null),m=(0,s.useRef)(null),[g,v,y]=function(e,...t){let n=(0,s.useId)(),r=e||n;return(0,s.useMemo)(()=>t.map(e=>`${e}-${r}`),[r,t])}(u,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let n=e.current;(0,s.useEffect)(()=>{if(e.current&&t)return(0,a.Ry)(e.current)},[t,e,n])}(f,t&&d);let b=(0,r.$)(f,t),w=(0,s.useRef)(null),k=(0,s.useCallback)(e=>{w.current=e.target},[]),x=(0,s.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),c&&(null==n||n()),null==p||p())},[c,n,p]),[_,S]=(0,s.useState)(!1),[E,D]=(0,s.useState)(!1),C=(0,s.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,o.lq)(t,f),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?v:void 0,"aria-describedby":E?y:void 0,onClick:(0,i.v0)(e.onClick,e=>e.stopPropagation())}),[y,E,g,v,_]),j=(0,s.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&r.m.isTopModal(f.current)&&(l&&(null==n||n()),null==h||h())},[n,l,h]),O=(0,s.useCallback)((e={},t=null)=>({...e,ref:(0,o.lq)(t,m),onClick:(0,i.v0)(e.onClick,j),onKeyDown:(0,i.v0)(e.onKeyDown,x),onMouseDown:(0,i.v0)(e.onMouseDown,k)}),[x,k,j]);return{isOpen:t,onClose:n,headerId:v,bodyId:y,setBodyMounted:D,setHeaderMounted:S,dialogRef:f,overlayRef:m,getDialogProps:C,getDialogContainerProps:O,index:b}}(t),autoFocus:f,trapFocus:g,initialFocusRef:v,finalFocusRef:y,returnFocusOnClose:b,blockScrollOnMount:w,allowPinchZoom:k,preserveScrollBarGap:x,motionPreset:_,lockFocusAcrossFrames:S};return(0,h.jsx)(m,{value:C,children:(0,h.jsx)(p,{value:D,children:(0,h.jsx)(d.M,{onExitComplete:E,children:C.isOpen&&(0,h.jsx)(u.h,{...n,children:l})})})})};v.displayName="Modal"},34221:function(e,t,n){"use strict";n.d(t,{M:function(){return tt}});var r,i,o,a=n(92850),s=n(76220),u=n(7896),l=n(2784),c="data-focus-lock",d="data-focus-lock-disabled",h=n(22442),p={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},f=n(64597),m=(0,f.s)({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),g=(0,f.s)(),v=(0,f.s)(),y=(0,f._)({async:!0}),b=[],w=l.forwardRef(function(e,t){var n,r=l.useState(),i=r[0],o=r[1],a=l.useRef(),s=l.useRef(!1),f=l.useRef(null),v=e.children,w=e.disabled,k=void 0!==w&&w,x=e.noFocusGuards,_=void 0!==x&&x,S=e.persistentFocus,E=e.crossFrame,D=e.autoFocus,C=(e.allowTextSelection,e.group),j=e.className,O=e.whiteList,T=e.hasPositiveIndices,A=e.shards,P=void 0===A?b:A,R=e.as,M=e.lockProps,F=e.sideCar,N=e.returnFocus,I=void 0!==N&&N,L=e.focusOptions,B=e.onActivation,z=e.onDeactivation,U=l.useState({})[0],q=l.useCallback(function(){f.current=f.current||document&&document.activeElement,a.current&&B&&B(a.current),s.current=!0},[B]),$=l.useCallback(function(){s.current=!1,z&&z(a.current)},[z]);(0,l.useEffect)(function(){k||(f.current=null)},[]);var H=l.useCallback(function(e){var t=f.current;if(t&&t.focus){var n="function"==typeof I?I(t):I;if(n){var r="object"==typeof n?n:void 0;f.current=null,e?Promise.resolve().then(function(){return t.focus(r)}):t.focus(r)}}},[I]),W=l.useCallback(function(e){s.current&&m.useMedium(e)},[]),V=g.useMedium,G=l.useCallback(function(e){a.current!==e&&(a.current=e,o(e))},[]),Y=(0,u.Z)(((n={})[d]=k&&"disabled",n[c]=C,n),void 0===M?{}:M),Z=!0!==_,K=Z&&"tail"!==_,J=(0,h.q)([t,G]);return l.createElement(l.Fragment,null,Z&&[l.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:k?-1:0,style:p}),T?l.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:k?-1:1,style:p}):null],!k&&l.createElement(F,{id:U,sideCar:y,observed:i,disabled:k,persistentFocus:void 0!==S&&S,crossFrame:void 0===E||E,autoFocus:void 0===D||D,whiteList:O,shards:P,onActivation:q,onDeactivation:$,returnFocus:H,focusOptions:L}),l.createElement(void 0===R?"div":R,(0,u.Z)({ref:J},Y,{className:j,onBlur:V,onFocus:W}),v),K&&l.createElement("div",{"data-focus-guard":!0,tabIndex:k?-1:0,style:p}))});function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}w.propTypes={};var x=n(56666),_=function(e){for(var t=Array(e.length),n=0;n=0}).sort(L)},z="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",U="".concat(z,", [data-focus-guard]"),q=function(e,t){return _((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?U:z)?[n]:[],q(n))},[])},$=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?H([e.contentDocument.body],t):[e]},H=function(e,t){return e.reduce(function(e,n){var r,i=q(n,t),o=(r=[]).concat.apply(r,i.map(function(e){return $(e,t)}));return e.concat(o,n.parentNode?_(n.parentNode.querySelectorAll(z)).filter(function(e){return e===n}):[])},[])},W=function(e,t){return _(e).filter(function(e){return O(t,e)}).filter(function(e){return!((P(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},V=function(e,t){return void 0===t&&(t=new Map),_(e).filter(function(e){return T(t,e)})},G=function(e,t,n){return B(W(H(e,n),t),!0,n)},Y=function(e,t){return B(W(H(e),t),!1)},Z=function(e,t){return e.shadowRoot?Z(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||_(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&Z(r,t)}return Z(e,t)})},K=function(e){try{return e()}catch(e){return}},J=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?J(t.shadowRoot):t instanceof HTMLIFrameElement&&K(function(){return t.contentWindow.document})?J(t.contentWindow.document):t}},X=function(e){void 0===e&&(e=document);var t=J(e);return!!t&&_(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Z(e,t)})},Q=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})},ee=function(e){return e.parentNode?ee(e.parentNode):e},et=function(e){return S(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(c);return e.push.apply(e,n?Q(_(ee(t).querySelectorAll("[".concat(c,'="').concat(n,'"]:not([').concat(d,'="disabled"])')))):[t]),e},[])},en=function(e,t){return void 0===t&&(t=J(E(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&et(e).some(function(e){var n;return Z(e,t)||(n=t,!!_(e.querySelectorAll("iframe")).some(function(e){return e===n}))})},er=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},ei=function(e,t){return R(e)&&e.name&&t.filter(R).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},eo=function(e){var t=new Set;return e.forEach(function(n){return t.add(ei(n,e))}),e.filter(function(e){return t.has(e)})},ea=function(e){return e[0]&&e.length>1?ei(e[0],e):e[0]},es=function(e,t){return e.length>1?e.indexOf(ei(e[t],e)):t},eu="NEW_FOCUS",el=function(e,t,n,r){var i=e.length,o=e[0],a=e[i-1],s=F(n);if(!(n&&e.indexOf(n)>=0)){var u=void 0!==n?t.indexOf(n):-1,l=r?t.indexOf(r):u,c=r?e.indexOf(r):-1,d=u-l,h=t.indexOf(o),p=t.indexOf(a),f=eo(t),m=(void 0!==n?f.indexOf(n):-1)-(r?f.indexOf(r):u),g=es(e,0),v=es(e,i-1);if(-1===u||-1===c)return eu;if(!d&&c>=0)return c;if(u<=h&&s&&Math.abs(d)>1)return v;if(u>=p&&s&&Math.abs(d)>1)return g;if(d&&Math.abs(m)>1)return c;if(u<=h)return v;if(u>p)return g;if(d)return Math.abs(d)>1?c:(i+c+d)%i}},ec=function(e,t,n){var r=V(e.map(function(e){return e.node}).filter(function(e){var t,r=null===(t=A(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==r&&"false"!==r||n.indexOf(e)>=0}));return r&&r.length?ea(r):ea(V(t))},ed=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&ed(e.parentNode.host||e.parentNode,t),t},eh=function(e,t){for(var n=ed(e),r=ed(t),i=0;i=0)return o}return!1},ep=function(e,t,n){var r=S(e),i=S(t),o=r[0],a=!1;return i.filter(Boolean).forEach(function(e){a=eh(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=eh(o,e);t&&(a=!a||Z(t,a)?t:eh(t,a))})}),a},ef=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(I)},em=function(e,t){var n=J(S(e).length>0?document:E(e).ownerDocument),r=et(e).filter(N),i=ep(n||e,e,r),o=new Map,a=Y(r,o),s=G(r,o).filter(function(e){return N(e.node)});if(s[0]||(s=a)[0]){var u=Y([i],o).map(function(e){return e.node}),l=ef(u,s),c=l.map(function(e){return e.node}),d=el(c,u,n,t);if(d===eu){var h=ec(a,c,r.reduce(function(e,t){return e.concat(W(_(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return H([e])}).reduce(function(e,t){return e.concat(t)},[]),o))},[]));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:l[d]}},eg=0,ev=!1,ey=function(e,t,n){void 0===n&&(n={});var r=em(e,t);if(!ev&&r){if(eg>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ev=!0,setTimeout(function(){ev=!1},1);return}eg++,er(r.node,n.focusOptions),eg--}},eb=function(e){var t=et(e).filter(N),n=ep(e,e,t),r=new Map,i=G([n],r,!0),o=G(t,r).filter(function(e){return N(e.node)}).map(function(e){return e.node});return i.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:F(t)}})};function ew(e){setTimeout(e,1)}var ek=null,ex=null,e_=null,eS=!1,eE=function(e,t){e_={observerNode:e,portaledElement:t}};function eD(e,t,n,r){var i=null,o=e;do{var a=r[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}var eC=function(e){return e&&"current"in e?e.current:e},ej=function(){var e=!1;if(ek){var t=ek,n=t.observed,r=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,u=n||e_&&e_.portaledElement,l=document&&document.activeElement;if(u){var c=[u].concat(o.map(eC).filter(Boolean));if((!l||(ek.whiteList||function(){return!0})(l))&&(r||(a?!!eS:"meanwhile"===eS)||!(document&&document.activeElement===document.body||X())||!ex&&i)&&(u&&!(en(c)||l&&c.some(function(e){return function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))}(l,e,e)})||e_&&e_.portaledElement===l)&&(document&&!ex&&l&&!i?(l.blur&&l.blur(),document.body.focus()):(e=ey(c,ex,{focusOptions:s}),e_={})),eS=!1,ex=document&&document.activeElement),document){var d=document&&document.activeElement,h=eb(c),p=h.map(function(e){return e.node}).indexOf(d);p>-1&&(h.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),eD(p,h.length,1,h),eD(p,-1,-1,h))}}}return e},eO=function(e){ej()&&e&&(e.stopPropagation(),e.preventDefault())},eT=function(){return ew(ej)},eA=function(){eS="just",ew(function(){eS="meanwhile"})},eP=function(){document.addEventListener("focusin",eO),document.addEventListener("focusout",eT),window.addEventListener("blur",eA)},eR=function(){document.removeEventListener("focusin",eO),document.removeEventListener("focusout",eT),window.removeEventListener("blur",eA)};m.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||eE(n,t)}),g.assignMedium(eT),v.assignMedium(function(e){return e({moveFocusInside:ey,focusInside:en})});var eM=(r=function(e){return e.filter(function(e){return!e.disabled})},i=function(e){var t=e.slice(-1)[0];t&&!ek&&eP();var n=ek,r=n&&t&&t.id===n.id;ek=t,!n||r||(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(ex=null,r&&n.observed===t.observed||t.onActivation(),ej(!0),ew(ej)):(eR(),ex=null)},function(e){var t,n=[];function o(){i(t=r(n.map(function(e){return e.props})))}var a=function(r){function i(){return r.apply(this,arguments)||this}i.prototype=Object.create(r.prototype),i.prototype.constructor=i,k(i,r),i.peek=function(){return t};var a=i.prototype;return a.componentDidMount=function(){n.push(this),o()},a.componentDidUpdate=function(){o()},a.componentWillUnmount=function(){var e=n.indexOf(this);n.splice(e,1),o()},a.render=function(){return l.createElement(e,this.props)},i}(l.PureComponent);return(0,x.Z)(a,"displayName","SideEffect("+(e.displayName||e.name||"Component")+")"),a})(function(){return null}),eF=l.forwardRef(function(e,t){return l.createElement(w,(0,u.Z)({sideCar:eM,ref:t},e))}),eN=w.propTypes||{};eN.sideCar,function(e,t){if(null!=e){var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n])}}(eN,["sideCar"]),eF.propTypes={};var eI=n(51905),eL=n(52322),eB=null!=(o=eF.default)?o:eF,ez=e=>{let{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:u,lockFocusAcrossFrames:c}=e,d=(0,l.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==r?void 0:r.current)&&0===(0,eI.t5)(r.current).length&&requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus()})},[t,r]),h=(0,l.useCallback)(()=>{var e;null==(e=null==n?void 0:n.current)||e.focus()},[n]),p=i&&!n;return(0,eL.jsx)(eB,{crossFrame:c,persistentFocus:u,autoFocus:s,disabled:a,onActivation:d,onDeactivation:h,returnFocus:p,children:o})};ez.displayName="FocusLock";var eU=n(58175),eq=function(){return(eq=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(0,h.q)([n,t]),x=eq(eq({},w),i);return l.createElement(l.Fragment,null,d&&l.createElement(f,{sideCar:eH,removeScrollBar:c,shards:p,noIsolation:m,inert:g,setCallbacks:o,allowPinchZoom:!!v,lockRef:n,gapMode:b}),a?l.cloneElement(l.Children.only(s),eq(eq({},x),{ref:k})):l.createElement(void 0===y?"div":y,eq({},x,{className:u,ref:k}),s))});eV.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eV.classNames={fullWidth:e$.zi,zeroRight:e$.pF};var eG=n(57758),eY=n(181),eZ=n(33225),eK=!1;if("undefined"!=typeof window)try{var eJ=Object.defineProperty({},"passive",{get:function(){return eK=!0,!0}});window.addEventListener("test",eJ,eJ),window.removeEventListener("test",eJ,eJ)}catch(e){eK=!1}var eX=!!eK&&{passive:!1},eQ=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},e0=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),e1(e,r)){var i=e2(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},e1=function(e,t){return"v"===e?eQ(t,"overflowY"):eQ(t,"overflowX")},e2=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},e3=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,u=n.target,l=t.contains(u),c=!1,d=s>0,h=0,p=0;do{var f=e2(e,u),m=f[0],g=f[1]-f[2]-a*m;(m||g)&&e1(e,u)&&(h+=g,p+=m),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-s>p)&&(c=!0),c},e5=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},e4=function(e){return[e.deltaX,e.deltaY]},e6=function(e){return e&&"current"in e?e.current:e},e8=0,e9=[],e7=(0,eG.L)(eH,function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),i=l.useState(e8++)[0],o=l.useState(eZ.Ws)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;iMath.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=e0(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=e0(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(u||l)&&(r.current=i),!i)return!0;var p=r.current||i;return e3(p,t,e,"h"===p?u:l,!0)},[]),u=l.useCallback(function(e){if(e9.length&&e9[e9.length-1]===o){var n="deltaY"in e?e4(e):e5(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(e6).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=l.useCallback(function(e){n.current=e5(e),r.current=void 0},[]),h=l.useCallback(function(t){c(t.type,e4(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,e5(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return e9.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",u,eX),document.addEventListener("touchmove",u,eX),document.addEventListener("touchstart",d,eX),function(){e9=e9.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,eX),document.removeEventListener("touchmove",u,eX),document.removeEventListener("touchstart",d,eX)}},[]);var f=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,f?l.createElement(eY.jp,{gapMode:e.gapMode}):null)}),te=l.forwardRef(function(e,t){return l.createElement(eV,eq({},e,{ref:t,sideCar:e7}))});function tt(e){let{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:u,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:h,lockFocusAcrossFrames:p,isOpen:f}=(0,a.vR)(),[m,g]=(0,eU.oO)();(0,l.useEffect)(()=>{!m&&g&&setTimeout(g)},[m,g]);let v=(0,s.$)(r,f);return(0,eL.jsx)(ez,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:c,restoreFocus:d,contentRef:r,lockFocusAcrossFrames:p,children:(0,eL.jsx)(te,{removeScrollBar:!h,allowPinchZoom:u,enabled:1===v&&o,forwardProps:!0,children:e.children})})}te.classNames=eV.classNames},97217:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(92850),i=n(31053),o=n(29058),a=n(59576),s=n(2784),u=n(52322),l=(0,o.G)((e,t)=>{let{className:n,...o}=e,{bodyId:l,setBodyMounted:c}=(0,r.vR)();(0,s.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),h=(0,r.I_)();return(0,u.jsx)(a.m.div,{ref:t,className:d,id:l,...o,__css:h.body})});l.displayName="ModalBody"},50250:function(e,t,n){"use strict";n.d(t,{m:function(){return u}});var r=n(92850),i=n(31053),o=n(29058),a=n(59576),s=n(52322),u=(0,o.G)((e,t)=>{let{className:n,...o}=e,u=(0,i.cx)("chakra-modal__footer",n),l={display:"flex",alignItems:"center",justifyContent:"flex-end",...(0,r.I_)().footer};return(0,s.jsx)(a.m.footer,{ref:t,...o,__css:l,className:u})});u.displayName="ModalFooter"},63176:function(e,t,n){"use strict";n.d(t,{Y2:function(){return A},zu:function(){return P}});var r=n(62929),i=n(52322),o=e=>(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),a=e=>(0,i.jsx)(r.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})}),s=n(2784);function u(e,t,n,r){(0,s.useEffect)(()=>{var i;if(!e.current||!r)return;let o=null!=(i=e.current.ownerDocument.defaultView)?i:window,a=Array.isArray(t)?t:[t],s=new o.MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.attributeName&&a.includes(t.attributeName)&&n(t)});return s.observe(e.current,{attributes:!0,attributeFilter:a}),()=>s.disconnect()})}var l=n(90359),c=n(56372);function d(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function h(e,t){return Math.max((0,c.vk)(t),(0,c.vk)(e))}function p(e,t,n){let r=d(e);if(Number.isNaN(r))return;let i=h(r,t);return(0,c.Zd)(r,null!=n?n:i)}var f=n(32465),m=n(3171),g=n(36140),v=n(85244),y=n(31053),b=/^[Ee0-9+\-.]$/;function w(e){return b.test(e)}var k=n(76874),x=n(9165),_=n(29058),S=n(91982),E=n(84586),D=n(59576),[C,j]=(0,x.k)({name:"NumberInputStylesContext",errorMessage:"useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),[O,T]=(0,x.k)({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),A=(0,_.G)(function(e,t){let n=(0,S.jC)("NumberInput",e),r=(0,E.Lr)(e),{htmlProps:o,...a}=function(e={}){let{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:a=1,isReadOnly:b,isDisabled:k,isRequired:x,isInvalid:_,pattern:S="[0-9]*(.[0-9]+)?",inputMode:E="decimal",allowMouseWheel:D,id:C,onChange:j,precision:O,name:T,"aria-describedby":A,"aria-label":P,"aria-labelledby":R,onFocus:M,onBlur:F,onInvalid:N,getAriaValueText:I,isValidCharacter:L,format:B,parse:z,...U}=e,q=(0,l.W)(M),$=(0,l.W)(F),H=(0,l.W)(N),W=(0,l.W)(null!=L?L:w),V=(0,l.W)(I),G=function(e={}){let{onChange:t,precision:n,defaultValue:r,value:i,step:o=1,min:a=Number.MIN_SAFE_INTEGER,max:u=Number.MAX_SAFE_INTEGER,keepWithinRange:f=!0}=e,m=(0,l.W)(t),[g,v]=(0,s.useState)(()=>{var e;return null==r?"":null!=(e=p(r,o,n))?e:""}),y=void 0!==i,b=y?i:g,w=h(d(b),o),k=null!=n?n:w,x=(0,s.useCallback)(e=>{e!==b&&(y||v(e.toString()),null==m||m(e.toString(),d(e)))},[m,y,b]),_=(0,s.useCallback)(e=>{let t=e;return f&&(t=(0,c.HU)(t,a,u)),(0,c.Zd)(t,k)},[k,f,u,a]),S=(0,s.useCallback)((e=o)=>{x(_(""===b?d(e):d(b)+e))},[_,o,x,b]),E=(0,s.useCallback)((e=o)=>{x(_(""===b?d(-e):d(b)-e))},[_,o,x,b]),D=(0,s.useCallback)(()=>{var e;x(null==r?"":null!=(e=p(r,o,n))?e:a)},[r,n,o,x,a]),C=(0,s.useCallback)(e=>{var t;x(null!=(t=p(e,o,k))?t:a)},[k,o,x,a]),j=d(b);return{isOutOfRange:j>u||je.split("").filter(W).join(""),[W]),eo=(0,s.useCallback)(e=>{var t;return null!=(t=null==z?void 0:z(e))?t:e},[z]),ea=(0,s.useCallback)(e=>{var t;return(null!=(t=null==B?void 0:B(e))?t:e).toString()},[B]);(0,m.r)(()=>{G.valueAsNumber>o?null==H||H("rangeOverflow",ea(G.value),G.valueAsNumber):G.valueAsNumber{if(ee.current&&ee.current.value!=G.value){let e=eo(ee.current.value);G.setValue(ei(e))}},[eo,ei]);let es=(0,s.useCallback)((e=a)=>{Q&&Z(e)},[Z,Q,a]),eu=(0,s.useCallback)((e=a)=>{Q&&K(e)},[K,Q,a]),el=function(e,t){let[n,r]=(0,s.useState)(!1),[i,o]=(0,s.useState)(null),[a,u]=(0,s.useState)(!0),c=(0,s.useRef)(null),d=()=>clearTimeout(c.current);!function(e,t){let n=(0,l.W)(e);(0,s.useEffect)(()=>{let e=null;return null!==t&&(e=window.setInterval(()=>n(),t)),()=>{e&&window.clearInterval(e)}},[t,n])}(()=>{"increment"===i&&e(),"decrement"===i&&t()},n?50:null);let h=(0,s.useCallback)(()=>{a&&e(),c.current=setTimeout(()=>{u(!1),r(!0),o("increment")},300)},[e,a]),p=(0,s.useCallback)(()=>{a&&t(),c.current=setTimeout(()=>{u(!1),r(!0),o("decrement")},300)},[t,a]),f=(0,s.useCallback)(()=>{u(!0),r(!1),d()},[]);return(0,s.useEffect)(()=>()=>d(),[]),{up:h,down:p,stop:f,isSpinning:n}}(es,eu);u(en,"disabled",el.stop,el.isSpinning),u(er,"disabled",el.stop,el.isSpinning);let ec=(0,s.useCallback)(e=>{e.nativeEvent.isComposing||(Y(ei(eo(e.currentTarget.value))),et.current={start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd})},[Y,ei,eo]),ed=(0,s.useCallback)(e=>{var t,n,r;null==q||q(e),et.current&&(e.target.selectionStart=null!=(n=et.current.start)?n:null==(t=e.currentTarget.value)?void 0:t.length,e.currentTarget.selectionEnd=null!=(r=et.current.end)?r:e.currentTarget.selectionStart)},[q]),eh=(0,s.useCallback)(e=>{if(e.nativeEvent.isComposing)return;!function(e,t){if(null==e.key)return!0;let n=e.ctrlKey||e.altKey||e.metaKey;return 1!==e.key.length||!!n||t(e.key)}(e,W)&&e.preventDefault();let t=ep(e)*a,n={ArrowUp:()=>es(t),ArrowDown:()=>eu(t),Home:()=>Y(i),End:()=>Y(o)}[e.key];n&&(e.preventDefault(),n(e))},[W,a,es,eu,Y,i,o]),ep=e=>{let t=1;return(e.metaKey||e.ctrlKey)&&(t=.1),e.shiftKey&&(t=10),t},ef=(0,s.useMemo)(()=>{let e=null==V?void 0:V(G.value);return null!=e?e:G.value.toString()||void 0},[G.value,V]),em=(0,s.useCallback)(()=>{let e=G.value;""!==G.value&&(/^[eE]/.test(G.value.toString())?G.setValue(""):(G.valueAsNumbero&&(e=o),G.cast(e)))},[G,o,i]),eg=(0,s.useCallback)(()=>{X(!1),n&&em()},[n,X,em]),ev=(0,s.useCallback)(()=>{t&&requestAnimationFrame(()=>{var e;null==(e=ee.current)||e.focus()})},[t]),ey=(0,s.useCallback)(e=>{e.preventDefault(),el.up(),ev()},[ev,el]),eb=(0,s.useCallback)(e=>{e.preventDefault(),el.down(),ev()},[ev,el]);(0,f.O)(()=>ee.current,"wheel",e=>{var t,n;let r=(null!=(n=null==(t=ee.current)?void 0:t.ownerDocument)?n:document).activeElement===ee.current;if(!D||!r)return;e.preventDefault();let i=ep(e)*a,o=Math.sign(e.deltaY);-1===o?es(i):1===o&&eu(i)},{passive:!1});let ew=(0,s.useCallback)((e={},t=null)=>{let n=k||r&&G.isAtMax;return{...e,ref:(0,v.lq)(t,en),role:"button",tabIndex:-1,onPointerDown:(0,y.v0)(e.onPointerDown,e=>{0!==e.button||n||ey(e)}),onPointerLeave:(0,y.v0)(e.onPointerLeave,el.stop),onPointerUp:(0,y.v0)(e.onPointerUp,el.stop),disabled:n,"aria-disabled":(0,y.Qm)(n)}},[G.isAtMax,r,ey,el.stop,k]),ek=(0,s.useCallback)((e={},t=null)=>{let n=k||r&&G.isAtMin;return{...e,ref:(0,v.lq)(t,er),role:"button",tabIndex:-1,onPointerDown:(0,y.v0)(e.onPointerDown,e=>{0!==e.button||n||eb(e)}),onPointerLeave:(0,y.v0)(e.onPointerLeave,el.stop),onPointerUp:(0,y.v0)(e.onPointerUp,el.stop),disabled:n,"aria-disabled":(0,y.Qm)(n)}},[G.isAtMin,r,eb,el.stop,k]),ex=(0,s.useCallback)((e={},t=null)=>{var n,r,a,s;return{name:T,inputMode:E,type:"text",pattern:S,"aria-labelledby":R,"aria-label":P,"aria-describedby":A,id:C,disabled:k,...e,readOnly:null!=(n=e.readOnly)?n:b,"aria-readonly":null!=(r=e.readOnly)?r:b,"aria-required":null!=(a=e.required)?a:x,required:null!=(s=e.required)?s:x,ref:(0,v.lq)(ee,t),value:ea(G.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(G.valueAsNumber)?void 0:G.valueAsNumber,"aria-invalid":(0,y.Qm)(null!=_?_:G.isOutOfRange),"aria-valuetext":ef,autoComplete:"off",autoCorrect:"off",onChange:(0,y.v0)(e.onChange,ec),onKeyDown:(0,y.v0)(e.onKeyDown,eh),onFocus:(0,y.v0)(e.onFocus,ed,()=>X(!0)),onBlur:(0,y.v0)(e.onBlur,$,eg)}},[T,E,S,R,P,ea,A,C,k,x,b,_,G.value,G.valueAsNumber,G.isOutOfRange,i,o,ef,ec,eh,ed,$,eg]);return{value:ea(G.value),valueAsNumber:G.valueAsNumber,isFocused:J,isDisabled:k,isReadOnly:b,getIncrementButtonProps:ew,getDecrementButtonProps:ek,getInputProps:ex,htmlProps:U}}((0,k.K)(r)),b=(0,s.useMemo)(()=>a,[a]);return(0,i.jsx)(O,{value:b,children:(0,i.jsx)(C,{value:n,children:(0,i.jsx)(D.m.div,{...o,ref:t,className:(0,y.cx)("chakra-numberinput",e.className),__css:{position:"relative",zIndex:0,...n.root}})})})});A.displayName="NumberInput",(0,_.G)(function(e,t){let n=j();return(0,i.jsx)(D.m.div,{"aria-hidden":!0,ref:t,...e,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...n.stepperGroup}})}).displayName="NumberInputStepper";var P=(0,_.G)(function(e,t){let{getInputProps:n}=T(),r=n(e,t),o=j();return(0,i.jsx)(D.m.input,{...r,className:(0,y.cx)("chakra-numberinput__field",e.className),__css:{width:"100%",...o.field}})});P.displayName="NumberInputField";var R=(0,D.m)("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}});(0,_.G)(function(e,t){var n;let r=j(),{getDecrementButtonProps:a}=T(),s=a(e,t);return(0,i.jsx)(R,{...s,__css:r.stepper,children:null!=(n=e.children)?n:(0,i.jsx)(o,{})})}).displayName="NumberDecrementStepper",(0,_.G)(function(e,t){var n;let{getIncrementButtonProps:r}=T(),o=r(e,t),s=j();return(0,i.jsx)(R,{...o,__css:s.stepper,children:null!=(n=e.children)?n:(0,i.jsx)(a,{})})}).displayName="NumberIncrementStepper"},56372:function(e,t,n){"use strict";function r(e,t){let n=function(e){let t=parseFloat(e);return"number"!=typeof t||Number.isNaN(t)?0:t}(e),r=10**(null!=t?t:10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function i(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function o(e,t,n){return(e-t)*100/(n-t)}function a(e,t,n){return(n-t)*e+t}function s(e,t,n){return r(Math.round((e-t)/n)*n+t,i(n))}function u(e,t,n){return null==e?e:(n`${e}-${$}`),{referenceRef:Y,getArrowProps:Z,getPopperProps:K,getArrowInnerProps:J,forceUpdate:X}=(0,s.D)({...j,enabled:O||!!C}),Q=(0,r.h)({isOpen:O,ref:F});(0,i.s)({enabled:O,ref:M}),(0,o.C)(F,{focusRef:M,visible:O,shouldFocus:y&&x===p.click}),(0,o.G)(F,{focusRef:g,visible:O,shouldFocus:b&&x===p.click});let ee=(0,d.k)({wasSelected:I.current,enabled:E,mode:D,isSelected:Q.present}),et=(0,h.useCallback)((e={},r=null)=>{let i={...e,style:{...e.style,transformOrigin:u.Dq.transformOrigin.varRef,[u.Dq.arrowSize.var]:w?`${w}px`:void 0,[u.Dq.arrowShadowColor.var]:k},ref:(0,l.lq)(F,r),children:ee?e.children:null,id:W,tabIndex:-1,role:"dialog",onKeyDown:(0,c.v0)(e.onKeyDown,e=>{n&&"Escape"===e.key&&T()}),onBlur:(0,c.v0)(e.onBlur,e=>{let n=m(e),r=f(F.current,n),i=f(M.current,n);O&&t&&!r&&!i&&T()}),"aria-labelledby":L?V:void 0,"aria-describedby":z?G:void 0};return x===p.hover&&(i.role="tooltip",i.onMouseEnter=(0,c.v0)(e.onMouseEnter,()=>{N.current=!0}),i.onMouseLeave=(0,c.v0)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(N.current=!1,setTimeout(()=>T(),S))})),i},[ee,W,L,V,z,G,x,n,T,O,t,S,k,w]),en=(0,h.useCallback)((e={},t=null)=>K({...e,style:{visibility:O?"visible":"hidden",...e.style}},t),[O,K]),er=(0,h.useCallback)((e,t=null)=>({...e,ref:(0,l.lq)(t,R,Y)}),[R,Y]),ei=(0,h.useRef)(),eo=(0,h.useRef)(),ea=(0,h.useCallback)(e=>{null==R.current&&Y(e)},[Y]),es=(0,h.useCallback)((e={},n=null)=>{let r={...e,ref:(0,l.lq)(M,n,ea),id:H,"aria-haspopup":"dialog","aria-expanded":O,"aria-controls":W};return x===p.click&&(r.onClick=(0,c.v0)(e.onClick,P)),x===p.hover&&(r.onFocus=(0,c.v0)(e.onFocus,()=>{void 0===ei.current&&A()}),r.onBlur=(0,c.v0)(e.onBlur,e=>{let n=m(e),r=!f(F.current,n);O&&t&&r&&T()}),r.onKeyDown=(0,c.v0)(e.onKeyDown,e=>{"Escape"===e.key&&T()}),r.onMouseEnter=(0,c.v0)(e.onMouseEnter,()=>{N.current=!0,ei.current=window.setTimeout(()=>A(),_)}),r.onMouseLeave=(0,c.v0)(e.onMouseLeave,()=>{N.current=!1,ei.current&&(clearTimeout(ei.current),ei.current=void 0),eo.current=window.setTimeout(()=>{!1===N.current&&T()},S)})),r},[H,O,W,x,ea,P,A,t,T,_,S]);(0,h.useEffect)(()=>()=>{ei.current&&clearTimeout(ei.current),eo.current&&clearTimeout(eo.current)},[]);let eu=(0,h.useCallback)((e={},t=null)=>({...e,id:V,ref:(0,l.lq)(t,e=>{B(!!e)})}),[V]),el=(0,h.useCallback)((e={},t=null)=>({...e,id:G,ref:(0,l.lq)(t,e=>{U(!!e)})}),[G]);return{forceUpdate:X,isOpen:O,onAnimationComplete:Q.onComplete,onClose:T,getAnchorProps:er,getArrowProps:Z,getArrowInnerProps:J,getPopoverPositionerProps:en,getPopoverProps:et,getTriggerProps:es,getHeaderProps:eu,getBodyProps:el}}({...k,direction:x.direction});return(0,w.jsx)(g.H2,{value:_,children:(0,w.jsx)(g.WG,{value:t,children:(0,c.Pu)(n,{isOpen:_.isOpen,onClose:_.onClose,forceUpdate:_.forceUpdate})})})}k.displayName="Popover"},47154:function(e,t,n){"use strict";n.d(t,{Y:function(){return u}});var r=n(83118),i=n(29058),o=n(59576),a=n(31053),s=n(52322),u=(0,i.G)(function(e,t){let{getHeaderProps:n}=(0,r.lp)(),i=(0,r.SV)();return(0,s.jsx)(o.m.header,{...n(e,t),className:(0,a.cx)("chakra-popover__header",e.className),__css:i.header})});u.displayName="PopoverHeader"},11284:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(83118),i=n(2784);function o(e){let t=i.Children.only(e.children),{getAnchorProps:n}=(0,r.lp)();return(0,i.cloneElement)(t,n(t.props,t.ref))}o.displayName="PopoverAnchor"},89833:function(e,t,n){"use strict";n.d(t,{u:function(){return u}});var r=n(83118),i=n(81672),o=n(29058),a=n(31053),s=n(52322),u=(0,o.G)(function(e,t){let{onClose:n}=(0,r.lp)(),o=(0,r.SV)();return(0,s.jsx)(i.P,{size:"sm",onClick:n,className:(0,a.cx)("chakra-popover__close-btn",e.className),__css:o.closeButton,ref:t,...e})});u.displayName="PopoverCloseButton"},34071:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(83118),i=n(2784);function o(e){let t=i.Children.only(e.children),{getTriggerProps:n}=(0,r.lp)();return(0,i.cloneElement)(t,n(t.props,t.ref))}o.displayName="PopoverTrigger"},48394:function(e,t,n){"use strict";n.d(t,{b:function(){return u}});var r=n(83118),i=n(29058),o=n(59576),a=n(31053),s=n(52322),u=(0,i.G)(function(e,t){let{getBodyProps:n}=(0,r.lp)(),i=(0,r.SV)();return(0,s.jsx)(o.m.div,{...n(e,t),className:(0,a.cx)("chakra-popover__body",e.className),__css:i.body})});u.displayName="PopoverBody"},46164:function(e,t,n){"use strict";n.d(t,{Q:function(){return u}});var r=n(83118),i=n(59576),o=n(31053),a=n(52322),s=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function u(e){var t;let{bg:n,bgColor:u,backgroundColor:l,shadow:c,boxShadow:d,shadowColor:h}=e,{getArrowProps:p,getArrowInnerProps:f}=(0,r.lp)(),m=(0,r.SV)(),g=null!=(t=null!=n?n:u)?t:l;return(0,a.jsx)(i.m.div,{...p(),className:"chakra-popover__arrow-positioner",children:(0,a.jsx)(i.m.div,{className:(0,o.cx)("chakra-popover__arrow",e.className),...f(e),__css:{"--popper-arrow-shadow-color":s("colors",h),"--popper-arrow-bg":s("colors",g),"--popper-arrow-shadow":s("shadows",null!=c?c:d),...m.arrow}})})}u.displayName="PopoverArrow"},83118:function(e,t,n){"use strict";n.d(t,{H2:function(){return i},SV:function(){return s},WG:function(){return a},lp:function(){return o}});var r=n(9165),[i,o]=(0,r.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[a,s]=(0,r.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "})},79626:function(e,t,n){"use strict";n.d(t,{$B:function(){return l},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});var r=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),i={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}var a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],u={scroll:!0,resize:!0};function l(e){return"object"==typeof e?{enabled:!0,options:{...u,...e}}:{enabled:e,options:u}}},70339:function(e,t,n){"use strict";n.d(t,{D:function(){return v}});var r=n(79626),i={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},o={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{a(e)},effect:({state:e})=>()=>{a(e)}},a=e=>{e.elements.popper.style.setProperty(r.Dq.transformOrigin.var,(0,r.mv)(e.placement))},s={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{u(e)}},u=e=>{var t;if(!e.placement)return;let n=l(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:r.Dq.arrowSize.varRef,height:r.Dq.arrowSize.varRef,zIndex:-1});let t={[r.Dq.arrowSizeHalf.var]:`calc(${r.Dq.arrowSize.varRef} / 2 - 1px)`,[r.Dq.arrowOffset.var]:`calc(${r.Dq.arrowSizeHalf.varRef} * -1)`};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},l=e=>e.startsWith("top")?{property:"bottom",value:r.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:r.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:r.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:r.Dq.arrowOffset.varRef}:void 0,c={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{d(e)},effect:({state:e})=>()=>{d(e)}},d=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let n=(0,r.Ke)(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:r.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},h={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},p={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},f=n(85244),m=n(62465),g=n(2784);function v(e={}){let{enabled:t=!0,modifiers:n,placement:a="bottom",strategy:u="absolute",arrowPadding:l=8,eventListeners:d=!0,offset:v,gutter:y=8,flip:b=!0,boundary:w="clippingParents",preventOverflow:k=!0,matchWidth:x,direction:_="ltr"}=e,S=(0,g.useRef)(null),E=(0,g.useRef)(null),D=(0,g.useRef)(null),C=function(e,t="ltr"){var n,r;let i=(null==(n=h[e])?void 0:n[t])||e;return"ltr"===t?i:null!=(r=p[e])?r:i}(a,_),j=(0,g.useRef)(()=>{}),O=(0,g.useCallback)(()=>{var e;t&&S.current&&E.current&&(null==(e=j.current)||e.call(j),D.current=(0,m.fi)(S.current,E.current,{placement:C,modifiers:[c,s,o,{...i,enabled:!!x},{name:"eventListeners",...(0,r.$B)(d)},{name:"arrow",options:{padding:l}},{name:"offset",options:{offset:null!=v?v:[0,y]}},{name:"flip",enabled:!!b,options:{padding:8}},{name:"preventOverflow",enabled:!!k,options:{boundary:w}},...null!=n?n:[]],strategy:u}),D.current.forceUpdate(),j.current=D.current.destroy)},[C,t,n,x,d,l,v,y,b,k,w,u]);(0,g.useEffect)(()=>()=>{var e;S.current||E.current||(null==(e=D.current)||e.destroy(),D.current=null)},[]);let T=(0,g.useCallback)(e=>{S.current=e,O()},[O]),A=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,f.lq)(T,t)}),[T]),P=(0,g.useCallback)(e=>{E.current=e,O()},[O]),R=(0,g.useCallback)((e={},t=null)=>({...e,ref:(0,f.lq)(P,t),style:{...e.style,position:u,minWidth:x?void 0:"max-content",inset:"0 auto auto 0"}}),[u,P,x]),M=(0,g.useCallback)((e={},t=null)=>{let{size:n,shadowColor:r,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}(e)}},[]),F=(0,g.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=D.current)||e.update()},forceUpdate(){var e;null==(e=D.current)||e.forceUpdate()},transformOrigin:r.Dq.transformOrigin.varRef,referenceRef:T,popperRef:P,getPopperProps:R,getArrowProps:M,getArrowInnerProps:F,getReferenceProps:A}}},332:function(e,t,n){"use strict";n.d(t,{h:function(){return m}});var r=n(45493),i=n(36140),o=n(9165),a=n(28316),s=n(2784),u=n(52322),[l,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",h=e=>(0,u.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),p=e=>{let{appendToParentPortal:t,children:n}=e,[o,p]=(0,s.useState)(null),f=(0,s.useRef)(null),[,m]=(0,s.useState)({});(0,s.useEffect)(()=>m({}),[]);let g=c(),v=(0,r.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,n=t&&null!=g?g:e.body;if(!n)return;f.current=e.createElement("div"),f.current.className=d,n.appendChild(f.current),m({});let r=f.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==v?void 0:v.zIndex)?(0,u.jsx)(h,{zIndex:null==v?void 0:v.zIndex,children:n}):n;return f.current?(0,a.createPortal)((0,u.jsx)(l,{value:f.current,children:y}),f.current):(0,u.jsx)("span",{ref:e=>{e&&p(e)}})},f=e=>{let{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,c=null!=o?o:"undefined"!=typeof window?document.body:void 0,h=(0,s.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=d),e},[o]),[,p]=(0,s.useState)({});return((0,i.G)(()=>p({}),[]),(0,i.G)(()=>{if(h&&c)return c.appendChild(h),()=>{c.removeChild(h)}},[h,c]),c&&h)?(0,a.createPortal)((0,u.jsx)(l,{value:r?h:null,children:t}),h):null};function m(e){let{containerRef:t,...n}={appendToParentPortal:!0,...e};return t?(0,u.jsx)(f,{containerRef:t,...n}):(0,u.jsx)(p,{...n})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},45493:function(e,t,n){"use strict";n.d(t,{L:function(){return a},h:function(){return s}});var r=n(9165),i=n(52322),[o,a]=(0,r.k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:n}=e;return(0,i.jsx)(o,{value:{zIndex:n},children:t})}s.displayName="PortalManager"},35297:function(e,t,n){"use strict";n.d(t,{E:function(){return h},X:function(){return d}});var r=n(31053),i=n(85244),o=n(2784),a=n(29058),s=n(59576),u=n(9165),l=n(52322),[c,d]=(0,u.k)({name:"RadioGroupContext",strict:!1}),h=(0,a.G)((e,t)=>{let{colorScheme:n,size:a,variant:u,children:d,className:h,isDisabled:p,isFocusable:f,...m}=e,{value:g,onChange:v,getRootProps:y,name:b,htmlProps:w}=function(e={}){let{onChange:t,value:n,defaultValue:a,name:s,isDisabled:u,isFocusable:l,isNative:c,...d}=e,[h,p]=(0,o.useState)(a||""),f=void 0!==n,m=f?n:h,g=(0,o.useRef)(null),v=(0,o.useCallback)(()=>{let e=g.current;if(!e)return;let t="input:not(:disabled):checked",n=e.querySelector(t);if(n){n.focus();return}t="input:not(:disabled)";let r=e.querySelector(t);null==r||r.focus()},[]),y=(0,o.useId)(),b=`radio-${y}`,w=s||b,k=(0,o.useCallback)(e=>{let n=e&&(0,r.Kn)(e)&&(0,r.Kn)(e.target)?e.target.value:e;f||p(n),null==t||t(String(n))},[t,f]);return{getRootProps:(0,o.useCallback)((e={},t=null)=>({...e,ref:(0,i.lq)(t,g),role:"radiogroup"}),[]),getRadioProps:(0,o.useCallback)((e={},t=null)=>{let n=c?"checked":"isChecked";return{...e,ref:t,name:w,[n]:null!=m?e.value===m:void 0,onChange(e){k(e)},"data-radiogroup":!0}},[c,w,k,m]),name:w,ref:g,focus:v,setValue:p,value:m,onChange:k,isDisabled:u,isFocusable:l,htmlProps:d}}(m),k=(0,o.useMemo)(()=>({name:b,size:a,onChange:v,colorScheme:n,value:g,variant:u,isDisabled:p,isFocusable:f}),[b,a,v,n,g,u,p,f]);return(0,l.jsx)(c,{value:k,children:(0,l.jsx)(s.m.div,{...y(w,t),className:(0,r.cx)("chakra-radio-group",h),children:d})})});h.displayName="RadioGroup"},59669:function(e,t,n){"use strict";n.d(t,{Y:function(){return m}});var r=n(35297),i=n(35183),o=n(31053),a=n(67274),s=n(2784),u={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function l(e){e.preventDefault(),e.stopPropagation()}var c=n(29058),d=n(91982),h=n(84586),p=n(59576),f=n(52322),m=(0,c.G)((e,t)=>{var n;let c=(0,r.X)(),{onChange:m,value:g}=e,v=(0,d.jC)("Radio",{...c,...e}),{spacing:y="0.5rem",children:b,isDisabled:w=null==c?void 0:c.isDisabled,isFocusable:k=null==c?void 0:c.isFocusable,inputProps:x,..._}=(0,h.Lr)(e),S=e.isChecked;(null==c?void 0:c.value)!=null&&null!=g&&(S=c.value===g);let E=m;(null==c?void 0:c.onChange)&&null!=g&&(E=(0,o.PP)(c.onChange,m));let D=null!=(n=null==e?void 0:e.name)?n:null==c?void 0:c.name,{getInputProps:C,getCheckboxProps:j,getLabelProps:O,getRootProps:T,htmlProps:A}=function(e={}){let{defaultChecked:t,isChecked:n,isFocusable:c,isDisabled:d,isReadOnly:h,isRequired:p,onChange:f,isInvalid:m,name:g,value:v,id:y,"data-radiogroup":b,"aria-describedby":w,...k}=e,x=`radio-${(0,s.useId)()}`,_=(0,i.NJ)(),S=(0,r.X)(),E=_&&!(S||b)?_.id:x;E=null!=y?y:E;let D=null!=d?d:null==_?void 0:_.isDisabled,C=null!=h?h:null==_?void 0:_.isReadOnly,j=null!=p?p:null==_?void 0:_.isRequired,O=null!=m?m:null==_?void 0:_.isInvalid,[T,A]=(0,s.useState)(!1),[P,R]=(0,s.useState)(!1),[M,F]=(0,s.useState)(!1),[N,I]=(0,s.useState)(!1),[L,B]=(0,s.useState)(!!t),z=void 0!==n,U=z?n:L;(0,s.useEffect)(()=>(0,a.BT)(A),[]);let q=(0,s.useCallback)(e=>{if(C||D){e.preventDefault();return}z||B(e.target.checked),null==f||f(e)},[z,D,C,f]),$=(0,s.useCallback)(e=>{" "===e.key&&I(!0)},[I]),H=(0,s.useCallback)(e=>{" "===e.key&&I(!1)},[I]),W=(0,s.useCallback)((e={},t=null)=>({...e,ref:t,"data-active":(0,o.PB)(N),"data-hover":(0,o.PB)(M),"data-disabled":(0,o.PB)(D),"data-invalid":(0,o.PB)(O),"data-checked":(0,o.PB)(U),"data-focus":(0,o.PB)(P),"data-focus-visible":(0,o.PB)(P&&T),"data-readonly":(0,o.PB)(C),"aria-hidden":!0,onMouseDown:(0,o.v0)(e.onMouseDown,()=>I(!0)),onMouseUp:(0,o.v0)(e.onMouseUp,()=>I(!1)),onMouseEnter:(0,o.v0)(e.onMouseEnter,()=>F(!0)),onMouseLeave:(0,o.v0)(e.onMouseLeave,()=>F(!1))}),[N,M,D,O,U,P,C,T]),{onFocus:V,onBlur:G}=null!=_?_:{},Y=(0,s.useCallback)((e={},t=null)=>{let n=D&&!c;return{...e,id:E,ref:t,type:"radio",name:g,value:v,onChange:(0,o.v0)(e.onChange,q),onBlur:(0,o.v0)(G,e.onBlur,()=>R(!1)),onFocus:(0,o.v0)(V,e.onFocus,()=>R(!0)),onKeyDown:(0,o.v0)(e.onKeyDown,$),onKeyUp:(0,o.v0)(e.onKeyUp,H),checked:U,disabled:n,readOnly:C,required:j,"aria-invalid":(0,o.Qm)(O),"aria-disabled":(0,o.Qm)(n),"aria-required":(0,o.Qm)(j),"data-readonly":(0,o.PB)(C),"aria-describedby":w,style:u}},[D,c,E,g,v,q,G,V,$,H,U,C,j,O,w]);return{state:{isInvalid:O,isFocused:P,isChecked:U,isActive:N,isHovered:M,isDisabled:D,isReadOnly:C,isRequired:j},getCheckboxProps:W,getRadioProps:W,getInputProps:Y,getLabelProps:(e={},t=null)=>({...e,ref:t,onMouseDown:(0,o.v0)(e.onMouseDown,l),"data-disabled":(0,o.PB)(D),"data-checked":(0,o.PB)(U),"data-invalid":(0,o.PB)(O)}),getRootProps:(e,t=null)=>({...e,ref:t,"data-disabled":(0,o.PB)(D),"data-checked":(0,o.PB)(U),"data-invalid":(0,o.PB)(O)}),htmlProps:k}}({..._,isChecked:S,isFocusable:k,isDisabled:w,onChange:E,name:D}),[P,R]=function(e,t){let n={},r={};for(let[i,o]of Object.entries(e))t.includes(i)?n[i]=o:r[i]=o;return[n,r]}(A,h.oE),M=j(R),F=C(x,t),N=O(),I=Object.assign({},P,T()),L={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...v.container},B={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...v.control},z={userSelect:"none",marginStart:y,...v.label};return(0,f.jsxs)(p.m.label,{className:"chakra-radio",...I,__css:L,children:[(0,f.jsx)("input",{className:"chakra-radio__input",...F}),(0,f.jsx)(p.m.span,{className:"chakra-radio__control",...M,__css:B}),b&&(0,f.jsx)(p.m.span,{className:"chakra-radio__label",...N,__css:z,children:b})]})});m.displayName="Radio"},25578:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){return r.Children.toArray(e).filter(e=>(0,r.isValidElement)(e))}},9165:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(2784);function i(e={}){let{name:t,strict:n=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,u=(0,r.createContext)(s);return u.displayName=t,[u.Provider,function e(){var t;let s=(0,r.useContext)(u);if(!s&&n){let n=Error(null!=a?a:`${i} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw n.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,n,e),n}return s},u]}},38317:function(e,t,n){"use strict";n.d(t,{O:function(){return s},u:function(){return u}});var r=n(36140),i=n(2784),o=n(52322),a=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function s({defer:e}={}){let[,t]=(0,i.useReducer)(e=>e+1,0);return(0,r.G)(()=>{e&&t()},[e]),(0,i.useContext)(a)}function u(e){let{children:t,environment:n,disabled:r}=e,s=(0,i.useRef)(null),u=(0,i.useMemo)(()=>n||{getDocument:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument.defaultView)?t:window}},[n]),l=!r||!n;return(0,o.jsxs)(a.Provider,{value:u,children:[t,l&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",u.displayName="EnvironmentProvider"},87053:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(2784),i=n(32465),o=n(75800);function a(e){let{isOpen:t,ref:n}=e,[a,s]=(0,r.useState)(t),[u,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{u||(s(t),l(!0))},[t,u,a]),(0,i.O)(()=>n.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,o.kR)(n.current)).CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(t)}}}},90359:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e,t=[]){let n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)((...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},t)}},59572:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(90359);function o(e){let{value:t,defaultValue:n,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=e,s=(0,i.W)(o),u=(0,i.W)(a),[l,c]=(0,r.useState)(n),d=void 0!==t,h=d?t:l,p=(0,i.W)(e=>{let t="function"==typeof e?e(h):e;u(h,t)&&(d||c(t),s(t))},[d,s,h,u]);return[h,p]}},36502:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(90359),i=n(2784);function o(e={}){let{onClose:t,onOpen:n,isOpen:o,id:a}=e,s=(0,r.W)(n),u=(0,r.W)(t),[l,c]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:l,h=void 0!==o,p=(0,i.useId)(),f=null!=a?a:`disclosure-${p}`,m=(0,i.useCallback)(()=>{h||c(!1),null==u||u()},[h,u]),g=(0,i.useCallback)(()=>{h||c(!0),null==s||s()},[h,s]),v=(0,i.useCallback)(()=>{d?m():g()},[d,g,m]);return{isOpen:d,onOpen:g,onClose:m,onToggle:v,isControlled:h,getButtonProps:function(e={}){return{...e,"aria-expanded":d,"aria-controls":f,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),v()}}},getDisclosureProps:function(e={}){return{...e,hidden:!d,id:f}}}}},32465:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});var r=n(2784),i=n(90359);function o(e,t,n,o){let a=(0,i.W)(n);return(0,r.useEffect)(()=>{let r="function"==typeof e?e():null!=e?e:document;if(n&&r)return r.addEventListener(t,a,o),()=>{r.removeEventListener(t,a,o)}},[t,e,o,a,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,a,o)}}},23964:function(e,t,n){"use strict";n.d(t,{C:function(){return c},G:function(){return h}});var r=n(75800),i=n(41741),o=n(51905),a=n(32465),s=n(36140),u=n(3171),l=n(2784);function c(e,t){let{shouldFocus:n,visible:o,focusRef:a}=t,s=n&&!o;(0,u.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let n=(0,r.vY)(t);return!(!n||t.contains(n))&&!!(0,i.Wq)(n)}(e))return;let n=(null==a?void 0:a.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}var d={preventScroll:!0,shouldFocus:!1};function h(e,t=d){let{focusRef:n,preventScroll:r,shouldFocus:i,visible:c}=t,h="current"in e?e.current:e,p=i&&c,f=(0,l.useRef)(p),m=(0,l.useRef)(c);(0,s.G)(()=>{!m.current&&c&&(f.current=p),m.current=c},[c,p]);let g=(0,l.useCallback)(()=>{if(c&&h&&f.current&&(f.current=!1,!h.contains(document.activeElement))){if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus({preventScroll:r})});else{let e=(0,o.t5)(h);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}}},[c,r,h,n]);(0,u.r)(()=>{g()},[g]),(0,a.O)(h,"transitionend",g)}},76294:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(32465),i=()=>"undefined"!=typeof window,o=e=>i()&&e.test(navigator.vendor),a=e=>i()&&e.test(function(){var e;let t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),s=()=>a(/mac|iphone|ipad|ipod/i),u=()=>s()&&o(/apple/i);function l(e){let{ref:t,elements:n,enabled:i}=e,o=()=>{var e,n;return null!=(n=null==(e=t.current)?void 0:e.ownerDocument)?n:document};(0,r.O)(o,"pointerdown",e=>{if(!u()||!i)return;let r=e.target,a=(null!=n?n:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(r))||t===r});o().activeElement!==r&&a&&(e.preventDefault(),r.focus())})}},85244:function(e,t,n){"use strict";n.d(t,{lq:function(){return i},qq:function(){return o}});var r=n(2784);function i(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}function o(...e){return(0,r.useMemo)(()=>i(...e),e)}},36140:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(2784),i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:r.useEffect},3171:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.useRef)(!1),i=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&i.current)return e();i.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},21898:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(93429);function i(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,r.mf)(e)){e(t);return}try{e.current=t}catch(n){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}},81821:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(2784);function i(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=(0,r.createContext)(void 0);return o.displayName=i,[o.Provider,function e(){var i;let a=(0,r.useContext)(o);if(!a&&t){let t=Error(n);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return a},o]}},18200:function(e,t,n){"use strict";n.d(t,{x:function(){return E}});var r=n(28165),i=n(52322),o=String.raw,a=o` :root, :host { --chakra-vh: 100vh; } @supports (height: -webkit-fill-available) { :root, :host { --chakra-vh: -webkit-fill-available; } } @supports (height: -moz-fill-available) { :root, :host { --chakra-vh: -moz-fill-available; } } @supports (height: 100dvh) { :root, :host { --chakra-vh: 100dvh; } } `,s=()=>(0,i.jsx)(r.xB,{styles:a}),u=({scope:e=""})=>(0,i.jsx)(r.xB,{styles:o` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${a} `}),l=n(45493),c=n(15706),d=n(50019),h={light:"chakra-ui-light",dark:"chakra-ui-dark"},p="chakra-ui-color-mode",f={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(p)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(p,e)}catch(e){}}},m=n(36140),g=n(2784),v=()=>{};function y(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function b(e){let{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:a}={},colorModeManager:s=f}=e,u="dark"===o?"dark":"light",[l,c]=(0,g.useState)(()=>y(s,u)),[p,b]=(0,g.useState)(()=>y(s)),{getSystemTheme:w,setClassName:k,setDataset:x,addListener:_}=(0,g.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,n={setDataset:e=>{let r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName(e){document.body.classList.add(e?h.dark:h.light),document.body.classList.remove(e?h.light:h.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){let t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return n})({preventTransition:a}),[a]),S="system"!==o||l?l:p,E=(0,g.useCallback)(e=>{let t="system"===e?w():e;c(t),k("dark"===t),x(t),s.set(t)},[s,w,k,x]);(0,m.G)(()=>{"system"===o&&b(w())},[]),(0,g.useEffect)(()=>{let e=s.get();if(e){E(e);return}if("system"===o){E("system");return}E(u)},[s,u,o,E]);let D=(0,g.useCallback)(()=>{E("dark"===S?"light":"dark")},[S,E]);(0,g.useEffect)(()=>{if(r)return _(E)},[r,_,E]);let C=(0,g.useMemo)(()=>({colorMode:null!=t?t:S,toggleColorMode:t?v:D,setColorMode:t?v:E,forced:void 0!==t}),[S,D,E,t]);return(0,i.jsx)(d.kc.Provider,{value:C,children:n})}b.displayName="ColorModeProvider";var w=n(38317),k=e=>{let{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:a=!0,theme:d={},environment:h,cssVarsRoot:p,disableEnvironment:f,disableGlobalStyle:m}=e,g=(0,i.jsx)(w.u,{environment:h,disabled:f,children:t});return(0,i.jsx)(c.f6,{theme:d,cssVarsRoot:p,children:(0,i.jsxs)(b,{colorModeManager:n,options:d.config,children:[a?(0,i.jsx)(u,{scope:o}):(0,i.jsx)(s,{}),!m&&(0,i.jsx)(c.ZL,{}),r?(0,i.jsx)(l.h,{zIndex:r,children:g}):g]})})},x=n(48696),_=n(64836),S=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,i.jsxs)(k,{theme:n,...o,children:[(0,i.jsx)(_.Qi,{value:null==r?void 0:r.defaultOptions,children:t}),(0,i.jsx)(_.VW,{...r})]})},E=S(x.rS);S(x.wE)},31053:function(e,t,n){"use strict";n.d(t,{Kn:function(){return i},PB:function(){return u},PP:function(){return d},Pu:function(){return a},Qm:function(){return l},ZK:function(){return o},cx:function(){return r},v0:function(){return c}});var r=(...e)=>e.filter(Boolean).join(" ");function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var o=e=>{let{condition:t,message:n}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,u=e=>e?"":void 0,l=e=>!!e||void 0;function c(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function d(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},67109:function(e,t,n){"use strict";n.d(t,{O:function(){return v}});var r=n(2784),i=n(31053),o=n(59576),a=n(84586),s=n(28165),u=n(29058),l=n(91982),c=n(48929),d=n(52322),h=(0,o.m)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),p=(0,a.gJ)("skeleton-start-color"),f=(0,a.gJ)("skeleton-end-color"),m=(0,s.F4)({from:{opacity:0},to:{opacity:1}}),g=(0,s.F4)({from:{borderColor:p.reference,background:p.reference},to:{borderColor:f.reference,background:f.reference}}),v=(0,u.G)((e,t)=>{let n={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},s=(0,l.mq)("Skeleton",n),u=function(){let e=(0,r.useRef)(!0);return(0,r.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:v="",endColor:y="",isLoaded:b,fadeDuration:w,speed:k,className:x,fitContent:_,...S}=(0,a.Lr)(n),[E,D]=(0,c.dQ)("colors",[v,y]),C=function(e){let t=(0,r.useRef)();return(0,r.useEffect)(()=>{t.current=e},[e]),t.current}(b),j=(0,i.cx)("chakra-skeleton",x),O={...E&&{[p.variable]:E},...D&&{[f.variable]:D}};if(b){let e=u||C?"none":`${m} ${w}s`;return(0,d.jsx)(o.m.div,{ref:t,className:j,__css:{animation:e},...S})}return(0,d.jsx)(h,{ref:t,className:j,...S,__css:{width:_?"fit-content":void 0,...s,...O,_dark:{...s._dark,...O},animation:`${k}s linear infinite alternate ${g}`}})});v.displayName="Skeleton"},84010:function(e,t,n){"use strict";n.d(t,{N:function(){return u}});var r=n(67109),i=n(24772),o=n(59576),a=n(31053),s=n(52322),u=e=>{let{noOfLines:t=3,spacing:n="0.5rem",skeletonHeight:u="0.5rem",className:l,startColor:c,endColor:d,isLoaded:h,fadeDuration:p,speed:f,variant:m,size:g,colorScheme:v,children:y,...b}=e,w=(0,i.S)("number"==typeof t?[t]:t)||3,k=Array(w).fill(1).map((e,t)=>t+1),x=e=>w>1&&e===k.length?"80%":"100%",_=(0,a.cx)("chakra-skeleton__group",l);return(0,s.jsx)(o.m.div,{className:_,...b,children:k.map((e,t)=>{if(h&&t>0)return null;let i=h?null:{mb:e===k.length?"0":n,width:x(e),height:u};return(0,s.jsx)(r.O,{startColor:c,endColor:d,isLoaded:h,fadeDuration:p,speed:f,variant:m,size:g,colorScheme:v,...i,children:0===t?y:void 0},k.length.toString()+e)})})};u.displayName="SkeletonText"},55233:function(e,t,n){"use strict";n.d(t,{iR:function(){return et},Ms:function(){return ei},gs:function(){return en},Uj:function(){return er}});var r=e=>e?"":void 0,i=e=>!!e||void 0,o=(...e)=>e.filter(Boolean).join(" ");function a(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function s(e){let{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}var u={width:0,height:0},l=e=>e||u;function c(e,t="page"){return e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}(e,t):function(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}(e,t)}function d(e,t,n,r){var i;return i=function(e,t=!1){function n(t){e(t,{point:c(t)})}return t?e=>{let t=function(e){var t;let n=null!=(t=e.view)?t:window;return void 0!==n.PointerEvent&&e instanceof n.PointerEvent?!("mouse"!==e.pointerType):e instanceof n.MouseEvent}(e);(!t||t&&0===e.button)&&n(e)}:n}(n,"pointerdown"===t),e.addEventListener(t,i,r),()=>{e.removeEventListener(t,i,r)}}let h=1/60*1e3,p="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),f="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(p()),h),m=!0,g=!1,v=!1,y={delta:0,timestamp:0},b=["read","update","preRender","render","postRender"],w=b.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let u=s&&i,l=u?t:n;return o&&a.add(e),-1===l.indexOf(e)&&(l.push(e),u&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:u=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;ng=!0),e),{}),k=b.reduce((e,t)=>{let n=w[t];return e[t]=(e,t=!1,r=!1)=>(g||E(),n.schedule(e,t,r)),e},{}),x=b.reduce((e,t)=>(e[t]=w[t].cancel,e),{});b.reduce((e,t)=>(e[t]=()=>w[t].process(y),e),{});let _=e=>w[e].process(y),S=e=>{g=!1,y.delta=m?h:Math.max(Math.min(e-y.timestamp,40),1),y.timestamp=e,v=!0,b.forEach(_),v=!1,g&&(m=!1,f(S))},E=()=>{g=!0,m=!0,v||f(S)},D=()=>y;var C=Object.defineProperty,j=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t,n)=>(j(e,"symbol"!=typeof t?t+"":t,n),n),T=class{constructor(e,t,n){var r;if(O(this,"history",[]),O(this,"startEvent",null),O(this,"lastEvent",null),O(this,"lastEventInfo",null),O(this,"handlers",{}),O(this,"removeListeners",()=>{}),O(this,"threshold",3),O(this,"win"),O(this,"updatePoint",()=>{var e,t;if(!(this.lastEvent&&this.lastEventInfo))return;let n=P(this.lastEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},(F(e)&&F(t)?Math.sqrt(M(e.x,t.x)**2+M(e.y,t.y)**2):0)>=this.threshold);if(!r&&!i)return;let{timestamp:o}=D();this.history.push({...n.point,timestamp:o});let{onStart:a,onMove:s}=this.handlers;r||(null==a||a(this.lastEvent,n),this.startEvent=this.lastEvent),null==s||s(this.lastEvent,n)}),O(this,"onPointerMove",(e,t)=>{this.lastEvent=e,this.lastEventInfo=t,k.update(this.updatePoint,!0)}),O(this,"onPointerUp",(e,t)=>{let n=P(t,this.history),{onEnd:r,onSessionEnd:i}=this.handlers;null==i||i(e,n),this.end(),r&&this.startEvent&&(null==r||r(e,n))}),this.win=null!=(r=e.view)?r:window,e.touches&&e.touches.length>1)return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();let i={point:c(e)},{timestamp:o}=D();this.history=[{...i.point,timestamp:o}];let{onSessionStart:a}=t;null==a||a(e,P(i,this.history)),this.removeListeners=function(...e){return t=>e.reduce((e,t)=>t(e),t)}(d(this.win,"pointermove",this.onPointerMove),d(this.win,"pointerup",this.onPointerUp),d(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;null==(e=this.removeListeners)||e.call(this),x.update(this.updatePoint)}};function A(e,t){return{x:e.x-t.x,y:e.y-t.y}}function P(e,t){return{point:e.point,delta:A(e.point,t[t.length-1]),offset:A(e.point,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>R(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}var R=e=>1e3*e;function M(e,t){return Math.abs(e-t)}function F(e){return"x"in e&&"y"in e}var N=n(2784);function I(e){let t=(0,N.useRef)(null);return t.current=e,t}var L=n(90359),B=n(3171),z=n(59572),U=(null==globalThis?void 0:globalThis.document)?N.useLayoutEffect:N.useEffect,q=n(85244),$=n(56372),H=n(9165),W=n(29058),V=n(91982),G=n(84586),Y=n(91148),Z=n(59576),K=n(52322),[J,X]=(0,H.k)({name:"SliderContext",hookName:"useSliderContext",providerName:""}),[Q,ee]=(0,H.k)({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),et=(0,W.G)((e,t)=>{var n;let c={...e,orientation:null!=(n=null==e?void 0:e.orientation)?n:"horizontal"},h=(0,V.jC)("Slider",c),p=(0,G.Lr)(c),{direction:f}=(0,Y.F)();p.direction=f;let{getInputProps:m,getRootProps:g,...v}=function(e){var t;let{min:n=0,max:o=100,onChange:c,value:h,defaultValue:p,isReversed:f,direction:m="ltr",orientation:g="horizontal",id:v,isDisabled:y,isReadOnly:b,onChangeStart:w,onChangeEnd:k,step:x=1,getAriaValueText:_,"aria-valuetext":S,"aria-label":E,"aria-labelledby":D,name:C,focusThumbOnChange:j=!0,...O}=e,A=(0,L.W)(w),P=(0,L.W)(k),R=(0,L.W)(_),M=function(e){let{isReversed:t,direction:n,orientation:r}=e;return"ltr"===n||"vertical"===r?t:!t}({isReversed:f,direction:m,orientation:g}),[F,H]=(0,z.T)({value:h,defaultValue:null!=p?p:o{var t,n;if(!ei.current)return;let r=er.current;r.eventSource="pointer";let i=ei.current.getBoundingClientRect(),{clientX:o,clientY:a}=null!=(n=null==(t=e.touches)?void 0:t[0])?n:e,s=(en?i.bottom-a:o-i.left)/(en?i.height:i.width);M&&(s=1-s);let u=(0,$.WS)(s,r.min,r.max);return r.step&&(u=parseFloat((0,$.WP)(u,r.min,r.step))),u=(0,$.HU)(u,r.min,r.max)},[en,M,er]),eh=(0,N.useCallback)(e=>{let t=er.current;t.isInteractive&&(e=parseFloat((0,$.WP)(e,t.min,J)),H(e=(0,$.HU)(e,t.min,t.max)))},[J,H,er]),ep=(0,N.useMemo)(()=>({stepUp(e=J){eh(M?X-e:X+e)},stepDown(e=J){eh(M?X+e:X-e)},reset(){eh(p||0)},stepTo(e){eh(e)}}),[eh,M,X,J,p]),ef=(0,N.useCallback)(e=>{let t=er.current,n={ArrowRight:()=>ep.stepUp(),ArrowUp:()=>ep.stepUp(),ArrowLeft:()=>ep.stepDown(),ArrowDown:()=>ep.stepDown(),PageUp:()=>ep.stepUp(K),PageDown:()=>ep.stepDown(K),Home:()=>eh(t.min),End:()=>eh(t.max)}[e.key];n&&(e.preventDefault(),e.stopPropagation(),n(e),t.eventSource="keyboard")},[ep,eh,K,er]),em=null!=(t=null==R?void 0:R(X))?t:S,eg=function(e){let[t]=function({getNodes:e,observeMutation:t=!0}){let[n,r]=(0,N.useState)([]),[i,o]=(0,N.useState)(0);return U(()=>{let n=e(),i=n.map((e,t)=>(function(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});let n=new(e.ownerDocument.defaultView??window).ResizeObserver(n=>{let r,i;if(!Array.isArray(n)||!n.length)return;let[o]=n;if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;t({width:r,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)})(e,e=>{r(n=>[...n.slice(0,t),e,...n.slice(t+1)])}));if(t){let e=n[0];i.push(function(e,t){var n,r;if(!e||!e.parentElement)return;let i=new(null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window).MutationObserver(()=>{t()});return i.observe(e.parentElement,{childList:!0}),()=>{i.disconnect()}}(e,()=>{o(e=>e+1)}))}return()=>{i.forEach(e=>{null==e||e()})}},[i]),n}({observeMutation:!1,getNodes:()=>["object"==typeof e&&null!==e&&"current"in e?e.current:e]});return t}(eo),{getThumbStyle:ev,rootStyle:ey,trackStyle:eb,innerTrackStyle:ew}=(0,N.useMemo)(()=>{let e=er.current,t=null!=eg?eg:{width:0,height:0};return function(e){let{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,o="vertical"===t?r.reduce((e,t)=>l(e).height>l(t).height?e:t,u):r.reduce((e,t)=>l(e).width>l(t).width?e:t,u),a={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...s({orientation:t,vertical:o?{paddingLeft:o.width/2,paddingRight:o.width/2}:{},horizontal:o?{paddingTop:o.height/2,paddingBottom:o.height/2}:{}})},c={position:"absolute",...s({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},d=1===n.length,h=[0,i?100-n[0]:n[0]],p=d?h:n,f=p[0];!d&&i&&(f=100-f);let m=Math.abs(p[p.length-1]-p[0]),g={...c,...s({orientation:t,vertical:i?{height:`${m}%`,top:`${f}%`}:{height:`${m}%`,bottom:`${f}%`},horizontal:i?{width:`${m}%`,right:`${f}%`}:{width:`${m}%`,left:`${f}%`}})};return{trackStyle:c,innerTrackStyle:g,rootStyle:a,getThumbStyle:e=>{var i;let o=null!=(i=r[e])?i:u;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...s({orientation:t,vertical:{bottom:`calc(${n[e]}% - ${o.height/2}px)`},horizontal:{left:`calc(${n[e]}% - ${o.width/2}px)`}})}}}}({isReversed:M,orientation:e.orientation,thumbRects:[t],thumbPercents:[et]})},[M,eg,et,er]),ek=(0,N.useCallback)(()=>{er.current.focusThumbOnChange&&setTimeout(()=>{var e;return null==(e=eo.current)?void 0:e.focus()})},[er]);function ex(e){let t=ed(e);null!=t&&t!==er.current.value&&H(t)}(0,B.r)(()=>{let e=er.current;ek(),"keyboard"===e.eventSource&&(null==P||P(e.value))},[X,P]),function(e,t){let{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:a,threshold:s}=t,u=!!(n||r||i||o||a),l=(0,N.useRef)(null),c=I({onSessionStart:o,onSessionEnd:a,onStart:r,onMove:n,onEnd(e,t){l.current=null,null==i||i(e,t)}});(0,N.useEffect)(()=>{var e;null==(e=l.current)||e.updateHandlers(c.current)}),(0,N.useEffect)(()=>{let t=e.current;if(t&&u)return d(t,"pointerdown",function(e){l.current=new T(e,c.current,s)})},[e,u,c,s]),(0,N.useEffect)(()=>()=>{var e;null==(e=l.current)||e.end(),l.current=null},[])}(ea,{onPanSessionStart(e){let t=er.current;t.isInteractive&&(V(!0),ek(),ex(e),null==A||A(t.value))},onPanSessionEnd(){let e=er.current;e.isInteractive&&(V(!1),null==P||P(e.value))},onPan(e){er.current.isInteractive&&ex(e)}});let e_=(0,N.useCallback)((e={},t=null)=>({...e,...O,ref:(0,q.lq)(t,ea),tabIndex:-1,"aria-disabled":i(y),"data-focused":r(G),style:{...e.style,...ey}}),[O,y,G,ey]),eS=(0,N.useCallback)((e={},t=null)=>({...e,ref:(0,q.lq)(t,ei),id:ec,"data-disabled":r(y),style:{...e.style,...eb}}),[y,ec,eb]),eE=(0,N.useCallback)((e={},t=null)=>({...e,ref:t,style:{...e.style,...ew}}),[ew]),eD=(0,N.useCallback)((e={},t=null)=>({...e,ref:(0,q.lq)(t,eo),role:"slider",tabIndex:Z?0:void 0,id:el,"data-active":r(W),"aria-valuetext":em,"aria-valuemin":n,"aria-valuemax":o,"aria-valuenow":X,"aria-orientation":g,"aria-disabled":i(y),"aria-readonly":i(b),"aria-label":E,"aria-labelledby":E?void 0:D,style:{...e.style,...ev(0)},onKeyDown:a(e.onKeyDown,ef),onFocus:a(e.onFocus,()=>Y(!0)),onBlur:a(e.onBlur,()=>Y(!1))}),[Z,el,W,em,n,o,X,g,y,b,E,D,ev,ef]),eC=(0,N.useCallback)((e,t=null)=>{let i=!(e.valueo),a=X>=e.value,s=(0,$.Rg)(e.value,n,o),u={position:"absolute",pointerEvents:"none",...function(e){let{orientation:t,vertical:n,horizontal:r}=e;return"vertical"===t?n:r}({orientation:g,vertical:{bottom:M?`${100-s}%`:`${s}%`},horizontal:{left:M?`${100-s}%`:`${s}%`}})};return{...e,ref:t,role:"presentation","aria-hidden":!0,"data-disabled":r(y),"data-invalid":r(!i),"data-highlighted":r(a),style:{...e.style,...u}}},[y,M,o,n,g,X]),ej=(0,N.useCallback)((e={},t=null)=>({...e,ref:t,type:"hidden",value:X,name:C}),[C,X]);return{state:{value:X,isFocused:G,isDragging:W},actions:ep,getRootProps:e_,getTrackProps:eS,getInnerTrackProps:eE,getThumbProps:eD,getMarkerProps:eC,getInputProps:ej}}(p),y=g(),b=m({},t);return(0,K.jsx)(J,{value:v,children:(0,K.jsx)(Q,{value:h,children:(0,K.jsxs)(Z.m.div,{...y,className:o("chakra-slider",c.className),__css:h.container,children:[c.children,(0,K.jsx)("input",{...b})]})})})});et.displayName="Slider";var en=(0,W.G)((e,t)=>{let{getThumbProps:n}=X(),r=ee(),i=n(e,t);return(0,K.jsx)(Z.m.div,{...i,className:o("chakra-slider__thumb",e.className),__css:r.thumb})});en.displayName="SliderThumb";var er=(0,W.G)((e,t)=>{let{getTrackProps:n}=X(),r=ee(),i=n(e,t);return(0,K.jsx)(Z.m.div,{...i,className:o("chakra-slider__track",e.className),__css:r.track})});er.displayName="SliderTrack";var ei=(0,W.G)((e,t)=>{let{getInnerTrackProps:n}=X(),r=ee(),i=n(e,t);return(0,K.jsx)(Z.m.div,{...i,className:o("chakra-slider__filled-track",e.className),__css:r.filledTrack})});ei.displayName="SliderFilledTrack",(0,W.G)((e,t)=>{let{getMarkerProps:n}=X(),r=ee(),i=n(e,t);return(0,K.jsx)(Z.m.div,{...i,className:o("chakra-slider__marker",e.className),__css:r.mark})}).displayName="SliderMark"},81540:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(28165),i=n(29058),o=n(91982),a=n(84586),s=n(59576),u=n(31053),l=n(52322),c=(0,r.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.G)((e,t)=>{let n=(0,o.mq)("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:d="0.45s",emptyColor:h="transparent",className:p,...f}=(0,a.Lr)(e),m=(0,u.cx)("chakra-spinner",p),g={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:h,borderLeftColor:h,animation:`${c} ${d} linear infinite`,...n};return(0,l.jsx)(s.m.div,{ref:t,__css:g,className:m,...f,children:r&&(0,l.jsx)(s.m.span,{srOnly:!0,children:r})})});d.displayName="Spinner"},84586:function(e,t,n){"use strict";n.d(t,{D:function(){return eL},Lr:function(){return ez},Ud:function(){return eB},ZR:function(){return eA},_6:function(){return en},c0:function(){return eD},cC:function(){return eO},fj:function(){return eI},gJ:function(){return et},iv:function(){return eF},k0:function(){return eN},oE:function(){return ej}});var r=n(31053),i=n(63637),o=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,s=(e,t)=>n=>{let i=String(t),s=o(i),u=a(i),l=e?`${e}.${u}`:u,c=(0,r.Kn)(n.__cssMap)&&l in n.__cssMap?n.__cssMap[l].varRef:t;return c=a(c),s?`${c} !important`:c};function u(e){let{scale:t,transform:n,compose:r}=e;return(e,i)=>{var o;let a=s(t,e)(i),u=null!=(o=null==n?void 0:n(a,i))?o:a;return r&&(u=r(u,i)),u}}var l=(...e)=>t=>e.reduce((e,t)=>t(e),t);function c(e,t){return n=>{let r={property:n,scale:e};return r.transform=u({scale:e,transform:t}),r}}var d=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],p={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},f={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},m={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},g={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},v=new Set(Object.values(g)),y=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),b=e=>e.trim(),w=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),k=e=>{let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},x=e=>t=>`${e}(${t})`,_={filter:e=>"auto"!==e?e:p,backdropFilter:e=>"auto"!==e?e:f,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":_.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=k(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||y.has(e))return e;if(!(w(e)||y.has(e)))return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=null==n?void 0:n[1],i=null==n?void 0:n[2];if(!r||!i)return e;let o=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=i.split(",").map(b).filter(Boolean);if((null==s?void 0:s.length)===0)return e;let u=a in g?g[a]:a;s.unshift(u);let l=s.map(e=>{if(v.has(e))return e;let n=e.indexOf(" "),[r,i]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],o=w(i)?i:i&&i.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${l.join(", ")})`})(e,null!=t?t:{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:e=>x("hue-rotate")(_.degree(e)),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage:e=>null==e?e:w(e)||y.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:n,divide:r}=null!=(t=m[e])?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},S={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",_.gradient),radii:c("radii",_.px),space:c("space",l(_.vh,_.px)),spaceT:c("space",l(_.vh,_.px)),degreeT:e=>({property:e,transform:_.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:u({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:c("sizes",l(_.vh,_.px)),sizesT:c("sizes",l(_.vh,_.fraction)),shadows:c("shadows"),logical:function(e){let{property:t,scale:n,transform:r}=e;return{scale:n,property:d(t),transform:n?u({scale:n,compose:r}):r}},blur:c("blur",_.blur)},E={background:S.colors("background"),backgroundColor:S.colors("backgroundColor"),backgroundImage:S.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:S.prop("backgroundSize"),bgPosition:S.prop("backgroundPosition"),bg:S.colors("background"),bgColor:S.colors("backgroundColor"),bgPos:S.prop("backgroundPosition"),bgRepeat:S.prop("backgroundRepeat"),bgAttachment:S.prop("backgroundAttachment"),bgGradient:S.gradients("backgroundImage"),bgClip:{transform:_.bgClip}};Object.assign(E,{bgImage:E.backgroundImage,bgImg:E.backgroundImage});var D={border:S.borders("border"),borderWidth:S.borderWidths("borderWidth"),borderStyle:S.borderStyles("borderStyle"),borderColor:S.colors("borderColor"),borderRadius:S.radii("borderRadius"),borderTop:S.borders("borderTop"),borderBlockStart:S.borders("borderBlockStart"),borderTopLeftRadius:S.radii("borderTopLeftRadius"),borderStartStartRadius:S.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:S.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:S.radii("borderTopRightRadius"),borderStartEndRadius:S.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:S.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:S.borders("borderRight"),borderInlineEnd:S.borders("borderInlineEnd"),borderBottom:S.borders("borderBottom"),borderBlockEnd:S.borders("borderBlockEnd"),borderBottomLeftRadius:S.radii("borderBottomLeftRadius"),borderBottomRightRadius:S.radii("borderBottomRightRadius"),borderLeft:S.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:S.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:S.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:S.borders(["borderLeft","borderRight"]),borderInline:S.borders("borderInline"),borderY:S.borders(["borderTop","borderBottom"]),borderBlock:S.borders("borderBlock"),borderTopWidth:S.borderWidths("borderTopWidth"),borderBlockStartWidth:S.borderWidths("borderBlockStartWidth"),borderTopColor:S.colors("borderTopColor"),borderBlockStartColor:S.colors("borderBlockStartColor"),borderTopStyle:S.borderStyles("borderTopStyle"),borderBlockStartStyle:S.borderStyles("borderBlockStartStyle"),borderBottomWidth:S.borderWidths("borderBottomWidth"),borderBlockEndWidth:S.borderWidths("borderBlockEndWidth"),borderBottomColor:S.colors("borderBottomColor"),borderBlockEndColor:S.colors("borderBlockEndColor"),borderBottomStyle:S.borderStyles("borderBottomStyle"),borderBlockEndStyle:S.borderStyles("borderBlockEndStyle"),borderLeftWidth:S.borderWidths("borderLeftWidth"),borderInlineStartWidth:S.borderWidths("borderInlineStartWidth"),borderLeftColor:S.colors("borderLeftColor"),borderInlineStartColor:S.colors("borderInlineStartColor"),borderLeftStyle:S.borderStyles("borderLeftStyle"),borderInlineStartStyle:S.borderStyles("borderInlineStartStyle"),borderRightWidth:S.borderWidths("borderRightWidth"),borderInlineEndWidth:S.borderWidths("borderInlineEndWidth"),borderRightColor:S.colors("borderRightColor"),borderInlineEndColor:S.colors("borderInlineEndColor"),borderRightStyle:S.borderStyles("borderRightStyle"),borderInlineEndStyle:S.borderStyles("borderInlineEndStyle"),borderTopRadius:S.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:S.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:S.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:S.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(D,{rounded:D.borderRadius,roundedTop:D.borderTopRadius,roundedTopLeft:D.borderTopLeftRadius,roundedTopRight:D.borderTopRightRadius,roundedTopStart:D.borderStartStartRadius,roundedTopEnd:D.borderStartEndRadius,roundedBottom:D.borderBottomRadius,roundedBottomLeft:D.borderBottomLeftRadius,roundedBottomRight:D.borderBottomRightRadius,roundedBottomStart:D.borderEndStartRadius,roundedBottomEnd:D.borderEndEndRadius,roundedLeft:D.borderLeftRadius,roundedRight:D.borderRightRadius,roundedStart:D.borderInlineStartRadius,roundedEnd:D.borderInlineEndRadius,borderStart:D.borderInlineStart,borderEnd:D.borderInlineEnd,borderTopStartRadius:D.borderStartStartRadius,borderTopEndRadius:D.borderStartEndRadius,borderBottomStartRadius:D.borderEndStartRadius,borderBottomEndRadius:D.borderEndEndRadius,borderStartRadius:D.borderInlineStartRadius,borderEndRadius:D.borderInlineEndRadius,borderStartWidth:D.borderInlineStartWidth,borderEndWidth:D.borderInlineEndWidth,borderStartColor:D.borderInlineStartColor,borderEndColor:D.borderInlineEndColor,borderStartStyle:D.borderInlineStartStyle,borderEndStyle:D.borderInlineEndStyle});var C={color:S.colors("color"),textColor:S.colors("color"),fill:S.colors("fill"),stroke:S.colors("stroke")},j={boxShadow:S.shadows("boxShadow"),mixBlendMode:!0,blendMode:S.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:S.prop("backgroundBlendMode"),opacity:!0};Object.assign(j,{shadow:j.boxShadow});var O={filter:{transform:_.filter},blur:S.blur("--chakra-blur"),brightness:S.propT("--chakra-brightness",_.brightness),contrast:S.propT("--chakra-contrast",_.contrast),hueRotate:S.propT("--chakra-hue-rotate",_.hueRotate),invert:S.propT("--chakra-invert",_.invert),saturate:S.propT("--chakra-saturate",_.saturate),dropShadow:S.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:S.blur("--chakra-backdrop-blur"),backdropBrightness:S.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:S.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:S.propT("--chakra-backdrop-hue-rotate",_.hueRotate),backdropInvert:S.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:S.propT("--chakra-backdrop-saturate",_.saturate)},T={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:S.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:S.space("gap"),rowGap:S.space("rowGap"),columnGap:S.space("columnGap")};Object.assign(T,{flexDir:T.flexDirection});var A={gridGap:S.space("gridGap"),gridColumnGap:S.space("gridColumnGap"),gridRowGap:S.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},P={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:S.colors("outlineColor")},R={width:S.sizesT("width"),inlineSize:S.sizesT("inlineSize"),height:S.sizes("height"),blockSize:S.sizes("blockSize"),boxSize:S.sizes(["width","height"]),minWidth:S.sizes("minWidth"),minInlineSize:S.sizes("minInlineSize"),minHeight:S.sizes("minHeight"),minBlockSize:S.sizes("minBlockSize"),maxWidth:S.sizes("maxWidth"),maxInlineSize:S.sizes("maxInlineSize"),maxHeight:S.sizes("maxHeight"),maxBlockSize:S.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;let o=null!=(i=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?i:e;return{[`@media screen and (min-width: ${o})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;let o=null!=(i=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?i:e;return{[`@media screen and (max-width: ${o})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:S.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(R,{w:R.width,h:R.height,minW:R.minWidth,maxW:R.maxWidth,minH:R.minHeight,maxH:R.maxHeight,overscroll:R.overscrollBehavior,overscrollX:R.overscrollBehaviorX,overscrollY:R.overscrollBehaviorY});var M={listStyleType:!0,listStylePosition:!0,listStylePos:S.prop("listStylePosition"),listStyleImage:!0,listStyleImg:S.prop("listStyleImage")},F=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r{let r={},i=F(e,t,{});for(let e in i)e in n&&null!=n[e]||(r[e]=i[e]);return r},B={position:!0,pos:S.prop("position"),zIndex:S.prop("zIndex","zIndices"),inset:S.spaceT("inset"),insetX:S.spaceT(["left","right"]),insetInline:S.spaceT("insetInline"),insetY:S.spaceT(["top","bottom"]),insetBlock:S.spaceT("insetBlock"),top:S.spaceT("top"),insetBlockStart:S.spaceT("insetBlockStart"),bottom:S.spaceT("bottom"),insetBlockEnd:S.spaceT("insetBlockEnd"),left:S.spaceT("left"),insetInlineStart:S.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:S.spaceT("right"),insetInlineEnd:S.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(B,{insetStart:B.insetInlineStart,insetEnd:B.insetInlineEnd});var z={ring:{transform:_.ring},ringColor:S.colors("--chakra-ring-color"),ringOffset:S.prop("--chakra-ring-offset-width"),ringOffsetColor:S.colors("--chakra-ring-offset-color"),ringInset:S.prop("--chakra-ring-inset")},U={margin:S.spaceT("margin"),marginTop:S.spaceT("marginTop"),marginBlockStart:S.spaceT("marginBlockStart"),marginRight:S.spaceT("marginRight"),marginInlineEnd:S.spaceT("marginInlineEnd"),marginBottom:S.spaceT("marginBottom"),marginBlockEnd:S.spaceT("marginBlockEnd"),marginLeft:S.spaceT("marginLeft"),marginInlineStart:S.spaceT("marginInlineStart"),marginX:S.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:S.spaceT("marginInline"),marginY:S.spaceT(["marginTop","marginBottom"]),marginBlock:S.spaceT("marginBlock"),padding:S.space("padding"),paddingTop:S.space("paddingTop"),paddingBlockStart:S.space("paddingBlockStart"),paddingRight:S.space("paddingRight"),paddingBottom:S.space("paddingBottom"),paddingBlockEnd:S.space("paddingBlockEnd"),paddingLeft:S.space("paddingLeft"),paddingInlineStart:S.space("paddingInlineStart"),paddingInlineEnd:S.space("paddingInlineEnd"),paddingX:S.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:S.space("paddingInline"),paddingY:S.space(["paddingTop","paddingBottom"]),paddingBlock:S.space("paddingBlock")};Object.assign(U,{m:U.margin,mt:U.marginTop,mr:U.marginRight,me:U.marginInlineEnd,marginEnd:U.marginInlineEnd,mb:U.marginBottom,ml:U.marginLeft,ms:U.marginInlineStart,marginStart:U.marginInlineStart,mx:U.marginX,my:U.marginY,p:U.padding,pt:U.paddingTop,py:U.paddingY,px:U.paddingX,pb:U.paddingBottom,pl:U.paddingLeft,ps:U.paddingInlineStart,paddingStart:U.paddingInlineStart,pr:U.paddingRight,pe:U.paddingInlineEnd,paddingEnd:U.paddingInlineEnd});var q={textDecorationColor:S.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:S.shadows("textShadow")},$={clipPath:!0,transform:S.propT("transform",_.transform),transformOrigin:!0,translateX:S.spaceT("--chakra-translate-x"),translateY:S.spaceT("--chakra-translate-y"),skewX:S.degreeT("--chakra-skew-x"),skewY:S.degreeT("--chakra-skew-y"),scaleX:S.prop("--chakra-scale-x"),scaleY:S.prop("--chakra-scale-y"),scale:S.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:S.degreeT("--chakra-rotate")},H={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:S.prop("transitionDuration","transition.duration"),transitionProperty:S.prop("transitionProperty","transition.property"),transitionTimingFunction:S.prop("transitionTimingFunction","transition.easing")},W={fontFamily:S.prop("fontFamily","fonts"),fontSize:S.prop("fontSize","fontSizes",_.px),fontWeight:S.prop("fontWeight","fontWeights"),lineHeight:S.prop("lineHeight","lineHeights"),letterSpacing:S.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},V={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:S.spaceT("scrollMargin"),scrollMarginTop:S.spaceT("scrollMarginTop"),scrollMarginBottom:S.spaceT("scrollMarginBottom"),scrollMarginLeft:S.spaceT("scrollMarginLeft"),scrollMarginRight:S.spaceT("scrollMarginRight"),scrollMarginX:S.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:S.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:S.spaceT("scrollPadding"),scrollPaddingTop:S.spaceT("scrollPaddingTop"),scrollPaddingBottom:S.spaceT("scrollPaddingBottom"),scrollPaddingLeft:S.spaceT("scrollPaddingLeft"),scrollPaddingRight:S.spaceT("scrollPaddingRight"),scrollPaddingX:S.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:S.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function G(e){return(0,r.Kn)(e)&&e.reference?e.reference:String(e)}var Y=(e,...t)=>t.map(G).join(` ${e} `).replace(/calc/g,""),Z=(...e)=>`calc(${Y("+",...e)})`,K=(...e)=>`calc(${Y("-",...e)})`,J=(...e)=>`calc(${Y("*",...e)})`,X=(...e)=>`calc(${Y("/",...e)})`,Q=e=>{let t=G(e);return null==t||Number.isNaN(parseFloat(t))?J(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(Z(e,...t)),subtract:(...t)=>ee(K(e,...t)),multiply:(...t)=>ee(J(e,...t)),divide:(...t)=>ee(X(e,...t)),negate:()=>ee(Q(e)),toString:()=>e.toString()}),{add:Z,subtract:K,multiply:J,divide:X,negate:Q});function et(e,t,n){let r=function(e,t=""){var n;return((n=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?n:Number.isInteger(parseFloat(n.toString()))?n:n.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,n);return{variable:r,reference:`var(${r}${t?`, ${t}`:""})`}}function en(e,t){let n={};for(let r of t){if(Array.isArray(r)){let[t,i]=r;n[t]=et(`${e}-${t}`,i);continue}n[r]=et(`${e}-${r}`)}return n}function er(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var ei=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,eo=e=>Object.fromEntries(Object.entries(e).sort(ei));function ea(e){let t=eo(e);return Object.assign(Object.values(t),t)}function es(e){var t;return e?"number"==typeof(e=null!=(t=er(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function eu(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${er(e)})`),t&&n.push("and",`(max-width: ${er(t)})`),n.join(" ")}var el=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,ec=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ed=(e,t)=>`${e}:focus-visible ${t}`,eh=(e,t)=>`${e}:focus-within ${t}`,ep=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ef=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,em=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,eg=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,ev=e=>eb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ey=e=>eb(t=>e(t,"~ &"),"[data-peer]",".peer"),eb=(e,...t)=>t.map(e).join(", "),ew={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ev(el),_peerHover:ey(el),_groupFocus:ev(ec),_peerFocus:ey(ec),_groupFocusVisible:ev(ed),_peerFocusVisible:ey(ed),_groupActive:ev(ep),_peerActive:ey(ep),_groupDisabled:ev(ef),_peerDisabled:ey(ef),_groupInvalid:ev(em),_peerInvalid:ey(em),_groupChecked:ev(eg),_peerChecked:ey(eg),_groupFocusWithin:ev(eh),_peerFocusWithin:ey(eh),_peerPlaceholderShown:ey((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},ek=Object.keys(ew);function ex(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function e_(e,t,n={}){let{stop:r,getKey:i}=n;return function e(n,o=[]){var a;if("object"==typeof n&&null!=n&&!Array.isArray(n)||Array.isArray(n)){let s={};for(let[u,l]of Object.entries(n)){let c=null!=(a=null==i?void 0:i(u))?a:u,d=[...o,c];if(null==r?void 0:r(n,d))return t(n,o);s[c]=e(l,d)}return s}return t(n,o)}(e)}var eS=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],eE=e=>ek.includes(e)||"default"===e;function eD(e){var t;let n=function(e){let{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}(e),{cssMap:o,cssVars:a}=function(e,t){let n={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:u,value:l}=s,{variable:c,reference:d}=ex(a,null==t?void 0:t.cssVarPrefix);if(!u){if(a.startsWith("space")){let[e,...t]=a.split("."),n=`${e}.-${t.join(".")}`,r=ee.negate(l),i=ee.negate(d);o[n]={value:r,var:c,varRef:i}}n[c]=l,o[a]={value:l,var:c,varRef:d};continue}let h=n=>{let r=[String(a).split(".")[0],n].join(".");if(!e[r])return n;let{reference:i}=ex(r,null==t?void 0:t.cssVarPrefix);return i};n=i(n,Object.entries((0,r.Kn)(l)?l:{default:l}).reduce((e,[t,n])=>{var r;if(!n)return e;let i=h(`${n}`);return"default"===t?e[c]=i:e[null!=(r=null==ew?void 0:ew[t])?r:t]={[c]:i},e},{})),o[a]={value:d,var:c,varRef:d}}return{cssVars:n,cssMap:o}}(function({tokens:e,semanticTokens:t}){let n={};return e_(e,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})}),e_(t,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(eE)}),n}({tokens:function(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}(n,eS),semanticTokens:n.semanticTokens}),{cssVarPrefix:null==(t=n.config)?void 0:t.cssVarPrefix});return Object.assign(n,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...a},__cssMap:o,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let n=ea(e),i=Object.entries(e).sort(ei).map(([e,t],n,r)=>{var i;let[,o]=null!=(i=r[n+1])?i:[];return o=parseFloat(o)>0?es(o):void 0,{_minW:es(t),breakpoint:e,minW:t,maxW:o,maxWQuery:eu(null,o),minWQuery:eu(t),minMaxQuery:eu(t,o)}}),o=new Set(Object.keys(eo(e))),a=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:eo(e),asArray:ea(e),details:i,get:e=>i.find(t=>t.breakpoint===e),media:[null,...n.map(e=>eu(e)).slice(1)],toArrayValue(e){if(!(0,r.Kn)(e))throw Error("toArrayValue: value must be an object");let t=a.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let r=a[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}(n.breakpoints)}),n}var eC=i({},E,D,C,T,R,O,z,P,A,{srOnly:{transform:e=>!0===e?N:"focusable"===e?I:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>L(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>L(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>L(t,e,n)}},B,j,U,V,W,q,$,M,H),ej=Object.keys(Object.assign({},U,R,T,A,B)),eO=[...Object.keys(eC),...ek],eT={...eC,...ew},eA=e=>e in eT,eP=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:n,toArrayValue:i,media:o}=t.__breakpoints,a={};for(let s in e){let u=(0,r.Pu)(e[s],t);if(null==u)continue;if(!Array.isArray(u=(0,r.Kn)(u)&&n(u)?i(u):u)){a[s]=u;continue}let l=u.slice(0,o.length).length;for(let e=0;ee.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),eM=(e,t)=>{var n,r;if(null==t)return t;let i=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){let t=[],n="",r=!1;for(let i=0;it=>(function(e){let{configs:t={},pseudos:n={},theme:o}=e,a=(e,s=!1)=>{var u,l,c;let d=(0,r.Pu)(e,o),h=eP(d)(o),p={};for(let e in h){let f=h[e],m=(0,r.Pu)(f,o);e in n&&(e=n[e]),eR(e,m)&&(m=eM(o,m));let g=t[e];if(!0===g&&(g={property:e}),(0,r.Kn)(m)){p[e]=null!=(u=p[e])?u:{},p[e]=i({},p[e],a(m,!0));continue}let v=null!=(c=null==(l=null==g?void 0:g.transform)?void 0:l.call(g,m,o,d))?c:m;v=(null==g?void 0:g.processResult)?a(v,!0):v;let y=(0,r.Pu)(null==g?void 0:g.property,o);if(!s&&(null==g?void 0:g.static)&&(p=i({},p,(0,r.Pu)(g.static,o))),y&&Array.isArray(y)){for(let e of y)p[e]=v;continue}if(y){"&"===y&&(0,r.Kn)(v)?p=i({},p,v):p[y]=v;continue}if((0,r.Kn)(v)){p=i({},p,v);continue}p[e]=v}return p};return a})({theme:t,pseudos:ew,configs:eC})(e);function eN(e){return e}function eI(e){return e}function eL(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function eB(e){return t=>{var n;let{variant:o,size:a,theme:s}=t,u=function(e){let t=e.__breakpoints;return function(e,n,o,a){var s,u,l;if(!t)return;let c={},d=(l=t.toArrayValue,Array.isArray(o)?o:(0,r.Kn)(o)?l(o):null!=o?[o]:void 0);if(!d)return c;let h=d.length,p=1===h,f=!!e.parts;for(let o=0;o{i(c,{[e]:p?g[e]:{[m]:g[e]}})});continue}if(!f){p?i(c,g):c[m]=g;continue}c[m]=g}}return c}}(s);return i({},(0,r.Pu)(null!=(n=e.baseStyle)?n:{},t),u(e,"sizes",a,t),u(e,"variants",o,t))}}function ez(e){return function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}},41098:function(e,t,n){"use strict";n.d(t,{r:function(){return d}});var r=n(28448),i=n(31053),o=n(29058),a=n(91982),s=n(84586),u=n(59576),l=n(2784),c=n(52322),d=(0,o.G)(function(e,t){let n=(0,a.jC)("Switch",e),{spacing:o="0.5rem",children:d,...h}=(0,s.Lr)(e),{getIndicatorProps:p,getInputProps:f,getCheckboxProps:m,getRootProps:g,getLabelProps:v}=(0,r.O)(h),y=(0,l.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),b=(0,l.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),w=(0,l.useMemo)(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return(0,c.jsxs)(u.m.label,{...g(),className:(0,i.cx)("chakra-switch",e.className),__css:y,children:[(0,c.jsx)("input",{className:"chakra-switch__input",...f({},t)}),(0,c.jsx)(u.m.span,{...m(),className:"chakra-switch__track",__css:b,children:(0,c.jsx)(u.m.span,{__css:n.thumb,className:"chakra-switch__thumb",...p()})}),d&&(0,c.jsx)(u.m.span,{className:"chakra-switch__label",...v(),__css:w,children:d})]})});d.displayName="Switch"},48929:function(e,t,n){"use strict";n.d(t,{LP:function(){return s},dQ:function(){return a},uP:function(){return o}});var r=n(91148),i=n(50019);function o(){let e=(0,i.If)(),t=(0,r.F)();return{...e,theme:t}}function a(e,t,n){let i=(0,r.F)();return s(e,t,n)(i)}function s(e,t,n){let r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return n=>{let o=i.filter(Boolean),a=r.map((t,r)=>{var i,a;return"breakpoints"===e?function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null==(r=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:r[t]};return null!=(i=null!=(r=o(t))?r:o(n))?i:n}(n,t,null!=(i=o[r])?i:t):function(e,t,n){var r,i;if(null==t)return t;let o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return null!=(i=null!=(r=o(t))?r:o(n))?i:n}(n,`${e}.${t}`,null!=(a=o[r])?a:t)});return Array.isArray(t)?a:a[0]}}},91982:function(e,t,n){"use strict";n.d(t,{jC:function(){return d},mq:function(){return c}});var r=n(48929),i=n(84586),o=n(82115),a=n(63637),s=n(2784),u=n(78435);function l(e,t={}){var n;let{styleConfig:l,...c}=t,{theme:d,colorMode:h}=(0,r.uP)(),p=e?(0,o.Wf)(d,`components.${e}`):void 0,f=l||p,m=a({theme:d,colorMode:h},null!=(n=null==f?void 0:f.defaultProps)?n:{},(0,o.YU)((0,o.CE)(c,["children"]))),g=(0,s.useRef)({});if(f){let e=(0,i.Ud)(f)(m);u(g.current,e)||(g.current=e)}return g.current}function c(e,t={}){return l(e,t)}function d(e,t={}){return l(e,t)}},8989:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=new Set([...n(84586).cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),i=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function o(e){return i.has(e)||!r.has(e)}},15706:function(e,t,n){"use strict";n.d(t,{ZL:function(){return g},f6:function(){return h}});var r=n(50019),i=n(81821),o=n(84586),a=n(82115),s=n(79729),u=n(94281),l=n(28165),c=n(2784),d=n(52322);function h(e){let{cssVarsRoot:t,theme:n,children:r}=e,i=(0,c.useMemo)(()=>(0,o.c0)(n),[n]);return(0,d.jsxs)(u.a,{theme:i,children:[(0,d.jsx)(p,{root:t}),r]})}function p({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,d.jsx)(l.xB,{styles:e=>({[t]:e.__cssVars})})}var[f,m]=(0,i.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function g(){let{colorMode:e}=(0,r.If)();return(0,d.jsx)(l.xB,{styles:t=>{let n=(0,a.Wf)(t,"styles.global"),r=(0,s.Pu)(n,{theme:t,colorMode:e});if(r)return(0,o.iv)(r)(t)}})}},91148:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(94281),i=n(2784);function o(){let e=(0,i.useContext)(r.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}},59576:function(e,t,n){"use strict";n.d(t,{m:function(){return I}});var r,i,o=n(8989),a=n(50019),s=n(84586),u=n(82115),l=n(79729),c=n(2784);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;te.charCodeAt(2)}),m=n(94281),g=n(82792),v=n(79003),y=n(69409),b=/[A-Z]|^ms/g,w=/_EMO_([^_]+?)_([^]*?)_EMO_/g,k=function(e){return 45===e.charCodeAt(1)},x=function(e){return null!=e&&"boolean"!=typeof e},_=(0,h.Z)(function(e){return k(e)?e:e.replace(b,"-$&").toLowerCase()}),S=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(w,function(e,t,n){return r={name:t,styles:n,next:r},t})}return 1===y.Z[e]||k(e)||"number"!=typeof t||0===t?t:t+"px"};function E(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return r={name:n.name,styles:n.styles,next:r},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)r={name:i.name,styles:i.styles,next:r},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?f:O},A=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},P=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,g.hC)(t,n,r),(0,j.L)(function(){return(0,g.My)(t,n,r)}),null},R=(function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=A(t,n,o),u=s||T(a),l=!u("as");return function(){var h=arguments,p=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&p.push("label:"+r+";"),null==h[0]||void 0===h[0].raw)p.push.apply(p,h);else{p.push(h[0][0]);for(var f=h.length,v=1;vt=>{let{theme:n,css:r,__css:i,sx:o,...a}=t,c=(0,u.lw)(a,(e,t)=>(0,s.ZR)(t)),d=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let n={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},i,(0,l.Pu)(e,t),(0,u.YU)(c),o),h=(0,s.iv)(d)(t.theme);return r?[h,r]:h};function N(e,t){let{baseStyle:n,...r}=null!=t?t:{};r.shouldForwardProp||(r.shouldForwardProp=o.x);let i=F({baseStyle:n}),s=M(e,r)(i);return c.forwardRef(function(e,t){let{colorMode:n,forced:r}=(0,a.If)();return c.createElement(s,{ref:t,"data-theme":r?n:void 0,...e})})}var I=function(){let e=new Map;return new Proxy(N,{apply:(e,t,n)=>N(...n),get:(t,n)=>(e.has(n)||e.set(n,N(n)),e.get(n))})}()},29058:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(2784);function i(e){return(0,r.forwardRef)(e)}},70189:function(e,t,n){"use strict";n.d(t,{i:function(){return h},p:function(){return d}});var r=n(29058),i=n(91982),o=n(84586),a=n(59576),s=n(31053),u=n(9165),l=n(52322),[c,d]=(0,u.k)({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),h=(0,r.G)((e,t)=>{let n=(0,i.jC)("Table",e),{className:r,layout:u,...d}=(0,o.Lr)(e);return(0,l.jsx)(c,{value:n,children:(0,l.jsx)(a.m.table,{ref:t,__css:{tableLayout:u,...n.table},className:(0,s.cx)("chakra-table",r),...d})})});h.displayName="Table"},80774:function(e,t,n){"use strict";n.d(t,{Tr:function(){return s}});var r=n(70189),i=n(29058),o=n(59576),a=n(52322),s=(0,i.G)((e,t)=>{let n=(0,r.p)();return(0,a.jsx)(o.m.tr,{...e,ref:t,__css:n.tr})})},66983:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(70189),i=n(29058),o=n(59576),a=n(52322),s=(0,i.G)((e,t)=>{let n=(0,r.p)();return(0,a.jsx)(o.m.tbody,{...e,ref:t,__css:n.tbody})})},64565:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(29058),i=n(59576),o=n(31053),a=n(52322),s=(0,r.G)((e,t)=>{var n;let{overflow:r,overflowX:s,className:u,...l}=e;return(0,a.jsx)(i.m.div,{ref:t,className:(0,o.cx)("chakra-table__container",u),...l,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(n=null!=r?r:s)?n:"auto",overflowY:"hidden",maxWidth:"100%"}})})},79443:function(e,t,n){"use strict";n.d(t,{Td:function(){return s}});var r=n(70189),i=n(29058),o=n(59576),a=n(52322),s=(0,i.G)(({isNumeric:e,...t},n)=>{let i=(0,r.p)();return(0,a.jsx)(o.m.td,{...t,ref:n,__css:i.td,"data-is-numeric":e})})},3181:function(e,t,n){"use strict";n.d(t,{n:function(){return l}});var r=n(36371),i=n(35286),o=n(31053),a=n(29058),s=n(59576),u=n(52322),l=(0,a.G)(function(e,t){let n=(0,i.bt)(e),a=(0,r.s)();return(0,u.jsx)(s.m.div,{...n,width:"100%",ref:t,className:(0,o.cx)("chakra-tabs__tab-panels",e.className),__css:a.tabpanels})});l.displayName="TabPanels"},73582:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(36371),i=n(35286),o=n(31053),a=n(29058),s=n(59576),u=n(52322),l=(0,a.G)(function(e,t){let n=(0,i.hp)({...e,ref:t}),a={display:"flex",...(0,r.s)().tablist};return(0,u.jsx)(s.m.div,{...n,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:a})});l.displayName="TabList"},36371:function(e,t,n){"use strict";n.d(t,{m:function(){return f},s:function(){return p}});var r=n(35286),i=n(9165),o=n(29058),a=n(91982),s=n(84586),u=n(59576),l=n(31053),c=n(2784),d=n(52322),[h,p]=(0,i.k)({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),f=(0,o.G)(function(e,t){let n=(0,a.jC)("Tabs",e),{children:i,className:o,...p}=(0,s.Lr)(e),{htmlProps:f,descendants:m,...g}=(0,r.YE)(p),v=(0,c.useMemo)(()=>g,[g]),{isFitted:y,...b}=f,w={position:"relative",...n.root};return(0,d.jsx)(r.mE,{value:m,children:(0,d.jsx)(r.X,{value:v,children:(0,d.jsx)(h,{value:n,children:(0,d.jsx)(u.m.div,{className:(0,l.cx)("chakra-tabs",o),ref:t,...b,__css:w,children:i})})})})});f.displayName="Tabs"},2969:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(36371),i=n(35286),o=n(31053),a=n(29058),s=n(59576),u=n(52322),l=(0,a.G)(function(e,t){let n=(0,r.s)(),a=(0,i.xD)({...e,ref:t}),l={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return(0,u.jsx)(s.m.button,{...a,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:l})});l.displayName="Tab"},13272:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var r=n(36371),i=n(35286),o=n(31053),a=n(29058),s=n(59576),u=n(52322),l=(0,a.G)(function(e,t){let n=(0,i.WE)({...e,ref:t}),a=(0,r.s)();return(0,u.jsx)(s.m.div,{outline:"0",...n,className:(0,o.cx)("chakra-tabs__tab-panel",e.className),__css:a.tabpanel})});l.displayName="TabPanel"},35286:function(e,t,n){"use strict";n.d(t,{WE:function(){return S},X:function(){return v},YE:function(){return g},bt:function(){return _},hp:function(){return b},mE:function(){return h},xD:function(){return w}});var r=n(30350),i=n(81550),o=n(9165),a=n(59572),s=n(25578),u=n(85244),l=n(4028),c=n(31053),d=n(2784),[h,p,f,m]=(0,i.n)();function g(e){var t;let{defaultIndex:n,onChange:r,index:i,isManual:o,isLazy:s,lazyBehavior:u="unmount",orientation:l="horizontal",direction:c="ltr",...h}=e,[p,m]=(0,d.useState)(null!=n?n:0),[g,v]=(0,a.T)({defaultValue:null!=n?n:0,value:i,onChange:r});(0,d.useEffect)(()=>{null!=i&&m(i)},[i]);let y=f(),b=(0,d.useId)(),w=null!=(t=e.id)?t:b;return{id:`tabs-${w}`,selectedIndex:g,focusedIndex:p,setSelectedIndex:v,setFocusedIndex:m,isManual:o,isLazy:s,lazyBehavior:u,orientation:l,descendants:y,direction:c,htmlProps:h}}var[v,y]=(0,o.k)({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function b(e){let{focusedIndex:t,orientation:n,direction:r}=y(),i=p(),o=(0,d.useCallback)(e=>{let o=()=>{var e;let n=i.nextEnabled(t);n&&(null==(e=n.node)||e.focus())},a=()=>{var e;let n=i.prevEnabled(t);n&&(null==(e=n.node)||e.focus())},s="horizontal"===n,u="vertical"===n,l={["ltr"===r?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===r?"ArrowRight":"ArrowLeft"]:()=>s&&o(),ArrowDown:()=>u&&o(),ArrowUp:()=>u&&a(),Home:()=>{var e;let t=i.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;let t=i.lastEnabled();t&&(null==(e=t.node)||e.focus())}}[e.key];l&&(e.preventDefault(),l(e))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:(0,c.v0)(e.onKeyDown,o)}}function w(e){let{isDisabled:t=!1,isFocusable:n=!1,...i}=e,{setSelectedIndex:o,isManual:a,id:s,setFocusedIndex:l,selectedIndex:d}=y(),{index:h,register:p}=m({disabled:t&&!n}),f=h===d;return{...(0,r.h)({...i,ref:(0,u.lq)(p,e.ref),isDisabled:t,isFocusable:n,onClick:(0,c.v0)(e.onClick,()=>{o(h)})}),id:E(s,h),role:"tab",tabIndex:f?0:-1,type:"button","aria-selected":f,"aria-controls":D(s,h),onFocus:t?void 0:(0,c.v0)(e.onFocus,()=>{l(h);let e=t&&n;a||e||o(h)})}}var[k,x]=(0,o.k)({});function _(e){let{id:t,selectedIndex:n}=y(),r=(0,s.W)(e.children).map((e,r)=>(0,d.createElement)(k,{key:r,value:{isSelected:r===n,id:D(t,r),tabId:E(t,r),selectedIndex:n}},e));return{...e,children:r}}function S(e){let{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=y(),{isSelected:o,id:a,tabId:s}=x(),u=(0,d.useRef)(!1);o&&(u.current=!0);let c=(0,l.k)({wasSelected:u.current,isSelected:o,enabled:r,mode:i});return{tabIndex:0,...n,children:c?t:null,role:"tabpanel","aria-labelledby":s,hidden:!o,id:a}}function E(e,t){return`${e}--tab-${t}`}function D(e,t){return`${e}--tabpanel-${t}`}},16556:function(e,t,n){"use strict";n.d(t,{AD:function(){return f},Sn:function(){return p},Vp:function(){return h}});var r=n(62929),i=n(9165),o=n(29058),a=n(91982),s=n(84586),u=n(59576),l=n(52322),[c,d]=(0,i.k)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),h=(0,o.G)((e,t)=>{let n=(0,a.jC)("Tag",e),r=(0,s.Lr)(e),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...n.container};return(0,l.jsx)(c,{value:n,children:(0,l.jsx)(u.m.span,{ref:t,...r,__css:i})})});h.displayName="Tag";var p=(0,o.G)((e,t)=>{let n=d();return(0,l.jsx)(u.m.span,{ref:t,noOfLines:1,...e,__css:n.label})});p.displayName="TagLabel";var f=(0,o.G)((e,t)=>(0,l.jsx)(r.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));f.displayName="TagLeftIcon",(0,o.G)((e,t)=>(0,l.jsx)(r.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e})).displayName="TagRightIcon";var m=e=>(0,l.jsx)(r.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});m.displayName="TagCloseIcon",(0,o.G)((e,t)=>{let{isDisabled:n,children:r,...i}=e,o={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...d().closeButton};return(0,l.jsx)(u.m.button,{ref:t,"aria-label":"close",...i,type:"button",disabled:n,__css:o,children:r||(0,l.jsx)(m,{})})}).displayName="TagCloseButton"},29494:function(e,t,n){"use strict";n.d(t,{g:function(){return d}});var r=n(76874),i=n(29058),o=n(91982),a=n(84586),s=n(59576),u=n(31053),l=n(52322),c=["h","minH","height","minHeight"],d=(0,i.G)((e,t)=>{let n=(0,o.mq)("Textarea",e),{className:i,rows:d,...h}=(0,a.Lr)(e),p=(0,r.Y)(h),f=d?function(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}(n,c):n;return(0,l.jsx)(s.m.textarea,{ref:t,rows:d,...p,className:(0,u.cx)("chakra-textarea",i),__css:f})});d.displayName="Textarea"},39279:function(e,t,n){"use strict";function r(e,t){return n=>"dark"===n.colorMode?t:e}function i(e){let{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}n.d(t,{f:function(){return i},x:function(){return r}})},10868:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(62202),i=n(31053);function o({variant:e,components:t}){return n=>{let o=Object.keys(n.components||{});return Array.isArray(t)?o=t:(0,i.Kn)(t)&&(o=Object.keys(t)),(0,r.Pv)(n,{components:Object.fromEntries(o.map(t=>[t,{defaultProps:{variant:e}}]))})}}},15193:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(62202),i=n(31053);function o({colorScheme:e,components:t}){return n=>{let o=Object.keys(n.components||{});return Array.isArray(t)?o=t:(0,i.Kn)(t)&&(o=Object.keys(t)),(0,r.Pv)(n,{components:Object.fromEntries(o.map(t=>[t,{defaultProps:{colorScheme:e}}]))})}}},62202:function(e,t,n){"use strict";n.d(t,{B1:function(){return l},Pv:function(){return c}});var r=n(31053),i=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],o=n(48696),a=n(63637);function s(e){return"function"==typeof e}var u=e=>function(...t){var n;let o=[...t],a=t[t.length-1];return(n=a,(0,r.Kn)(n)&&i.every(e=>Object.prototype.hasOwnProperty.call(n,e))&&o.length>1)?o=o.slice(0,o.length-1):a=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...o.map(e=>t=>s(e)?e(t):c(t,e)))(a)},l=u(o.rS);function c(...e){return a({},...e,d)}function d(e,t,n,r){if((s(e)||s(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...n)=>a({},s(e)?e(...n):e,s(t)?t(...n):t,d)}u(o.wE)},48696:function(e,t,n){"use strict";n.d(t,{wE:function(){return i0},rS:function(){return iQ}});var r,i,o,a,s,u,l,c,d,h,p,f,m,g,v,y,b,w,k,x,_,S,E,D={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},C={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},j={...C,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},O={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...D,sizes:j,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:C,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},T=n(84586),{defineMultiStyleConfig:A,definePartsStyle:P}=(0,T.D)(["stepper","step","title","description","indicator","separator","icon","number"]),R=(0,T.gJ)("stepper-indicator-size"),M=(0,T.gJ)("stepper-icon-size"),F=(0,T.gJ)("stepper-title-font-size"),N=(0,T.gJ)("stepper-description-font-size"),I=(0,T.gJ)("stepper-accent-color"),L=A({baseStyle:P(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[I.variable]:`colors.${e}.500`,_dark:{[I.variable]:`colors.${e}.200`}},title:{fontSize:F.reference,fontWeight:"medium"},description:{fontSize:N.reference,color:"chakra-subtle-text"},number:{fontSize:F.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:M.reference,height:M.reference},indicator:{flexShrink:0,borderRadius:"full",width:R.reference,height:R.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:I.reference},"&[data-status=complete]":{bg:I.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:I.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${R.reference} - 8px)`,top:`calc(${R.reference} + 4px)`,insetStart:`calc(${R.reference} / 2 - 1px)`}}})),sizes:{xs:P({stepper:{[R.variable]:"sizes.4",[M.variable]:"sizes.3",[F.variable]:"fontSizes.xs",[N.variable]:"fontSizes.xs"}}),sm:P({stepper:{[R.variable]:"sizes.6",[M.variable]:"sizes.4",[F.variable]:"fontSizes.sm",[N.variable]:"fontSizes.xs"}}),md:P({stepper:{[R.variable]:"sizes.8",[M.variable]:"sizes.5",[F.variable]:"fontSizes.md",[N.variable]:"fontSizes.sm"}}),lg:P({stepper:{[R.variable]:"sizes.10",[M.variable]:"sizes.6",[F.variable]:"fontSizes.lg",[N.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function B(e,t={}){let n=!1;function r(t){let n=(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__"),r=`chakra-${n}`;return{className:r,selector:`.${r}`,toString:()=>t}}return{parts:function(...i){for(let e of(!function(){if(!n){n=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=r(e);return B(e,t)},toPart:r,extend:function(...n){for(let e of n)e in t||(t[e]=r(e));return B(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}var z=B("accordion").parts("root","container","button","panel").extend("icon"),U=B("alert").parts("title","description","container").extend("icon","spinner"),q=B("avatar").parts("label","badge","container").extend("excessLabel","group"),$=B("breadcrumb").parts("link","item","container").extend("separator");B("button").parts();var H=B("checkbox").parts("control","icon","container").extend("label");B("progress").parts("track","filledTrack").extend("label");var W=B("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),V=B("editable").parts("preview","input","textarea"),G=B("form").parts("container","requiredIndicator","helperText"),Y=B("formError").parts("text","icon"),Z=B("input").parts("addon","field","element","group"),K=B("list").parts("container","item","icon"),J=B("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),X=B("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Q=B("numberinput").parts("root","field","stepperGroup","stepper");B("pininput").parts("field");var ee=B("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),et=B("progress").parts("label","filledTrack","track"),en=B("radio").parts("container","control","label"),er=B("select").parts("field","icon"),ei=B("slider").parts("container","track","thumb","filledTrack","mark"),eo=B("stat").parts("container","label","helpText","number","icon"),ea=B("switch").parts("container","track","thumb","label"),es=B("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),eu=B("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),el=B("tag").parts("container","label","closeButton"),ec=B("card").parts("container","header","body","footer");function ed(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function eh(e,t){var n,r;let i=function(e,t=""){return`--${function(e,t=""){return[t,ed(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:i,reference:(n="string"==typeof(r=null==t?void 0:t.fallback)?r:null==r?void 0:r.reference,`var(${ed(i)}${n?`, ${n}`:""})`)}}B("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var ep=n(31053);function ef(e){return(0,ep.Kn)(e)&&e.reference?e.reference:String(e)}var em=(e,...t)=>t.map(ef).join(` ${e} `).replace(/calc/g,""),eg=(...e)=>`calc(${em("+",...e)})`,ev=(...e)=>`calc(${em("-",...e)})`,ey=(...e)=>`calc(${em("*",...e)})`,eb=(...e)=>`calc(${em("/",...e)})`,ew=e=>{let t=ef(e);return null==t||Number.isNaN(parseFloat(t))?ey(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ek=Object.assign(e=>({add:(...t)=>ek(eg(e,...t)),subtract:(...t)=>ek(ev(e,...t)),multiply:(...t)=>ek(ey(e,...t)),divide:(...t)=>ek(eb(e,...t)),negate:()=>ek(ew(e)),toString:()=>e.toString()}),{add:eg,subtract:ev,multiply:ey,divide:eb,negate:ew}),{defineMultiStyleConfig:ex,definePartsStyle:e_}=(0,T.D)(ea.keys),eS=eh("switch-track-width"),eE=eh("switch-track-height"),eD=eh("switch-track-diff"),eC=ek.subtract(eS,eE),ej=eh("switch-thumb-x"),eO=eh("switch-bg"),eT=(0,T.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[eS.reference],height:[eE.reference],transitionProperty:"common",transitionDuration:"fast",[eO.variable]:"colors.gray.300",_dark:{[eO.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[eO.variable]:`colors.${t}.500`,_dark:{[eO.variable]:`colors.${t}.200`}},bg:eO.reference}}),eA=(0,T.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[eE.reference],height:[eE.reference],_checked:{transform:`translateX(${ej.reference})`}}),eP=ex({baseStyle:e_(e=>({container:{[eD.variable]:eC,[ej.variable]:eD.reference,_rtl:{[ej.variable]:ek(eD).negate().toString()}},track:eT(e),thumb:eA})),sizes:{sm:e_({container:{[eS.variable]:"1.375rem",[eE.variable]:"sizes.3"}}),md:e_({container:{[eS.variable]:"1.875rem",[eE.variable]:"sizes.4"}}),lg:e_({container:{[eS.variable]:"2.875rem",[eE.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),eR=n(39279),{defineMultiStyleConfig:eM,definePartsStyle:eF}=(0,T.D)(es.keys),eN=eF({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),eI=(0,T.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),eL=eM({baseStyle:eN,variants:{simple:eF(e=>{let{colorScheme:t}=e;return{th:{color:(0,eR.x)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},td:{borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},caption:{color:(0,eR.x)("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:eF(e=>{let{colorScheme:t}=e;return{th:{color:(0,eR.x)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},td:{borderBottom:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e),...eI},caption:{color:(0,eR.x)("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,eR.x)(`${t}.100`,`${t}.700`)(e)},td:{background:(0,eR.x)(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,T.k0)({})},sizes:{sm:eF({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:eF({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:eF({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function eB(e,t,n){return Math.min(Math.max(e,n),t)}class ez extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function eU(e){if("string"!=typeof e)throw new ez(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=eZ.test(e)?function(e){let t=e$[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new ez(e);return`#${t}`}(e):e;let n=eW.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(eH(e,2),16)),parseInt(eH(e[3]||"f",2),16)/255]}let r=eV.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=eG.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=eY.exec(t);if(o){let[t,n,r,i]=Array.from(o).slice(1).map(parseFloat);if(eB(0,100,n)!==n||eB(0,100,r)!==r)throw new ez(e);return[...eJ(t,n,r),Number.isNaN(i)?1:i]}throw new ez(e)}let eq=e=>parseInt(e.replace(/_/g,""),36),e$="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let n=eq(t.substring(0,3)),r=eq(t.substring(3)).toString(16),i="";for(let e=0;e<6-r.length;e++)i+="0";return e[n]=`${i}${r}`,e},{}),eH=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),eW=RegExp(`^#${eH("([a-f0-9])",3)}([a-f0-9])?$`,"i"),eV=RegExp(`^#${eH("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),eG=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${eH(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),eY=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,eZ=/^[a-z]+$/i,eK=e=>Math.round(255*e),eJ=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(eK);let i=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*r-1)),a=o*(1-Math.abs(i%2-1)),s=0,u=0,l=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,l=a):i>=3&&i<4?(u=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);let c=r-o/2;return[s+c,u+c,l+c].map(eK)};var eX=e=>0===Object.keys(e).length,eQ=(e,t,n)=>{let r=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r{let t=eB(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(n),o(r),i<1&&o(Math.round(255*i))}(r),r}catch{return null!=n?n:"#000000"}},e0=e=>{let[t,n,r]=eU(e);return(299*t+587*n+114*r)/1e3},e1=e=>t=>128>e0(eQ(t,e))?"dark":"light",e2=e=>t=>"dark"===e1(e)(t),e3=(e,t)=>n=>(function(e,t){var n;let[r,i,o,a]=eU(e);return n=a-t,`rgba(${eB(0,255,r).toFixed()}, ${eB(0,255,i).toFixed()}, ${eB(0,255,o).toFixed()}, ${parseFloat(eB(0,1,n).toFixed(3))})`})(eQ(n,e),1-t);function e5(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, transparent 50%, ${t} 50%, ${t} 75%, transparent 75%, transparent )`,backgroundSize:`${e} ${e}`}}var e4=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,e6=(0,T.gJ)("tabs-color"),e8=(0,T.gJ)("tabs-bg"),e9=(0,T.gJ)("tabs-border-color"),{defineMultiStyleConfig:e7,definePartsStyle:te}=(0,T.D)(eu.keys),tt=(0,T.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),tn=(0,T.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),tr=(0,T.k0)(e=>{let{align:t="start",orientation:n}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===n?"column":"row"}}),ti=(0,T.k0)({p:4}),to=e7({baseStyle:te(e=>({root:tt(e),tab:tn(e),tablist:tr(e),tabpanel:ti})),sizes:{sm:te({tab:{py:1,px:4,fontSize:"sm"}}),md:te({tab:{fontSize:"md",py:2,px:4}}),lg:te({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:te(e=>{let{colorScheme:t,orientation:n}=e,r="vertical"===n,i=r?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[r?"marginStart":"marginBottom"]:"-2px",_selected:{[e6.variable]:`colors.${t}.600`,_dark:{[e6.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[e8.variable]:"colors.gray.200",_dark:{[e8.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:e6.reference,bg:e8.reference}}}),enclosed:te(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[e9.variable]:"transparent",_selected:{[e6.variable]:`colors.${t}.600`,[e9.variable]:"colors.white",_dark:{[e6.variable]:`colors.${t}.300`,[e9.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:e9.reference},color:e6.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":te(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[e8.variable]:"colors.gray.50",_dark:{[e8.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[e8.variable]:"colors.white",[e6.variable]:`colors.${t}.600`,_dark:{[e8.variable]:"colors.gray.800",[e6.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:e6.reference,bg:e8.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":te(e=>{let{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:eQ(n,`${t}.700`),bg:eQ(n,`${t}.100`)}}}}),"solid-rounded":te(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[e6.variable]:"colors.gray.600",_dark:{[e6.variable]:"inherit"},_selected:{[e6.variable]:"colors.white",[e8.variable]:`colors.${t}.600`,_dark:{[e6.variable]:"colors.gray.800",[e8.variable]:`colors.${t}.300`}},color:e6.reference,bg:e8.reference}}}),unstyled:te({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ta=(0,T._6)("badge",["bg","color","shadow"]),ts=(0,T.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ta.bg.reference,color:ta.color.reference,boxShadow:ta.shadow.reference}),tu=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e,r=e3(`${t}.500`,.6)(n);return{[ta.bg.variable]:`colors.${t}.500`,[ta.color.variable]:"colors.white",_dark:{[ta.bg.variable]:r,[ta.color.variable]:"colors.whiteAlpha.800"}}}),tl=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e,r=e3(`${t}.200`,.16)(n);return{[ta.bg.variable]:`colors.${t}.100`,[ta.color.variable]:`colors.${t}.800`,_dark:{[ta.bg.variable]:r,[ta.color.variable]:`colors.${t}.200`}}}),tc=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e,r=e3(`${t}.200`,.8)(n);return{[ta.color.variable]:`colors.${t}.500`,_dark:{[ta.color.variable]:r},[ta.shadow.variable]:`inset 0 0 0px 1px ${ta.color.reference}`}}),td=(0,T.fj)({baseStyle:ts,variants:{solid:tu,subtle:tl,outline:tc},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:th,definePartsStyle:tp}=(0,T.D)(el.keys),tf=(0,T.gJ)("tag-bg"),tm=(0,T.gJ)("tag-color"),tg=(0,T.gJ)("tag-shadow"),tv=(0,T.gJ)("tag-min-height"),ty=(0,T.gJ)("tag-min-width"),tb=(0,T.gJ)("tag-font-size"),tw=(0,T.gJ)("tag-padding-inline"),tk=tp({container:(0,T.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[tm.variable]:ta.color.reference,[tf.variable]:ta.bg.reference,[tg.variable]:ta.shadow.reference,color:tm.reference,bg:tf.reference,boxShadow:tg.reference,borderRadius:"md",minH:tv.reference,minW:ty.reference,fontSize:tb.reference,px:tw.reference,_focusVisible:{[tg.variable]:"shadows.outline"}}),label:(0,T.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,T.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),tx={sm:tp({container:{[tv.variable]:"sizes.5",[ty.variable]:"sizes.5",[tb.variable]:"fontSizes.xs",[tw.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tp({container:{[tv.variable]:"sizes.6",[ty.variable]:"sizes.6",[tb.variable]:"fontSizes.sm",[tw.variable]:"space.2"}}),lg:tp({container:{[tv.variable]:"sizes.8",[ty.variable]:"sizes.8",[tb.variable]:"fontSizes.md",[tw.variable]:"space.3"}})},t_=th({variants:{subtle:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.subtle(e)}}),solid:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.solid(e)}}),outline:tp(e=>{var t;return{container:null==(t=td.variants)?void 0:t.outline(e)}})},baseStyle:tk,sizes:tx,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:tS,defineMultiStyleConfig:tE}=(0,T.D)(Z.keys),tD=(0,T.gJ)("input-height"),tC=(0,T.gJ)("input-font-size"),tj=(0,T.gJ)("input-padding"),tO=(0,T.gJ)("input-border-radius"),tT=tS({addon:{height:tD.reference,fontSize:tC.reference,px:tj.reference,borderRadius:tO.reference},field:{width:"100%",height:tD.reference,fontSize:tC.reference,px:tj.reference,borderRadius:tO.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),tA={lg:(0,T.k0)({[tC.variable]:"fontSizes.lg",[tj.variable]:"space.4",[tO.variable]:"radii.md",[tD.variable]:"sizes.12"}),md:(0,T.k0)({[tC.variable]:"fontSizes.md",[tj.variable]:"space.4",[tO.variable]:"radii.md",[tD.variable]:"sizes.10"}),sm:(0,T.k0)({[tC.variable]:"fontSizes.sm",[tj.variable]:"space.3",[tO.variable]:"radii.sm",[tD.variable]:"sizes.8"}),xs:(0,T.k0)({[tC.variable]:"fontSizes.xs",[tj.variable]:"space.2",[tO.variable]:"radii.sm",[tD.variable]:"sizes.6"})};function tP(e){let{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||(0,eR.x)("blue.500","blue.300")(e),errorBorderColor:n||(0,eR.x)("red.500","red.300")(e)}}var tR=tE({baseStyle:tT,sizes:{lg:tS({field:tA.lg,group:tA.lg}),md:tS({field:tA.md,group:tA.md}),sm:tS({field:tA.sm,group:tA.sm}),xs:tS({field:tA.xs,group:tA.xs})},variants:{outline:tS(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=tP(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,eR.x)("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eQ(t,r),boxShadow:`0 0 0 1px ${eQ(t,r)}`},_focusVisible:{zIndex:1,borderColor:eQ(t,n),boxShadow:`0 0 0 1px ${eQ(t,n)}`}},addon:{border:"1px solid",borderColor:(0,eR.x)("inherit","whiteAlpha.50")(e),bg:(0,eR.x)("gray.100","whiteAlpha.300")(e)}}}),filled:tS(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=tP(e);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,eR.x)("gray.100","whiteAlpha.50")(e),_hover:{bg:(0,eR.x)("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eQ(t,r)},_focusVisible:{bg:"transparent",borderColor:eQ(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,eR.x)("gray.100","whiteAlpha.50")(e)}}}),flushed:tS(e=>{let{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=tP(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:eQ(t,r),boxShadow:`0px 1px 0px 0px ${eQ(t,r)}`},_focusVisible:{borderColor:eQ(t,n),boxShadow:`0px 1px 0px 0px ${eQ(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tS({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),tM=(0,T.k0)({...null==(r=tR.baseStyle)?void 0:r.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),tF={outline:(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tR.variants)?void 0:t.outline(e).field)?n:{}}),flushed:(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tR.variants)?void 0:t.flushed(e).field)?n:{}}),filled:(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tR.variants)?void 0:t.filled(e).field)?n:{}}),unstyled:null!=(o=null==(i=tR.variants)?void 0:i.unstyled.field)?o:{}},tN={xs:null!=(s=null==(a=tR.sizes)?void 0:a.xs.field)?s:{},sm:null!=(l=null==(u=tR.sizes)?void 0:u.sm.field)?l:{},md:null!=(d=null==(c=tR.sizes)?void 0:c.md.field)?d:{},lg:null!=(p=null==(h=tR.sizes)?void 0:h.lg.field)?p:{}},tI=(0,T.fj)({baseStyle:tM,sizes:tN,variants:tF,defaultProps:{size:"md",variant:"outline"}}),tL=eh("tooltip-bg"),tB=eh("tooltip-fg"),tz=eh("popper-arrow-bg"),tU=(0,T.k0)({bg:tL.reference,color:tB.reference,[tL.variable]:"colors.gray.700",[tB.variable]:"colors.whiteAlpha.900",_dark:{[tL.variable]:"colors.gray.300",[tB.variable]:"colors.gray.900"},[tz.variable]:tL.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),tq=(0,T.fj)({baseStyle:tU}),{defineMultiStyleConfig:t$,definePartsStyle:tH}=(0,T.D)(et.keys),tW=(0,T.k0)(e=>{let{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=(0,eR.x)(e5(),e5("1rem","rgba(0,0,0,0.1)"))(e),a=(0,eR.x)(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( to right, transparent 0%, ${eQ(n,a)} 50%, transparent 100% )`;return{...!r&&i&&o,...r?{bgImage:s}:{bgColor:a}}}),tV=(0,T.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),tG=(0,T.k0)(e=>({bg:(0,eR.x)("gray.100","whiteAlpha.300")(e)})),tY=(0,T.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...tW(e)})),tZ=tH(e=>({label:tV,filledTrack:tY(e),track:tG(e)})),tK=t$({sizes:{xs:tH({track:{h:"1"}}),sm:tH({track:{h:"2"}}),md:tH({track:{h:"3"}}),lg:tH({track:{h:"4"}})},baseStyle:tZ,defaultProps:{size:"md",colorScheme:"blue"}}),tJ=e=>"function"==typeof e;function tX(e,...t){return tJ(e)?e(...t):e}var{definePartsStyle:tQ,defineMultiStyleConfig:t0}=(0,T.D)(H.keys),t1=(0,T.gJ)("checkbox-size"),t2=(0,T.k0)(e=>{let{colorScheme:t}=e;return{w:t1.reference,h:t1.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:(0,eR.x)(`${t}.500`,`${t}.200`)(e),borderColor:(0,eR.x)(`${t}.500`,`${t}.200`)(e),color:(0,eR.x)("white","gray.900")(e),_hover:{bg:(0,eR.x)(`${t}.600`,`${t}.300`)(e),borderColor:(0,eR.x)(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:(0,eR.x)("gray.200","transparent")(e),bg:(0,eR.x)("gray.200","whiteAlpha.300")(e),color:(0,eR.x)("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:(0,eR.x)(`${t}.500`,`${t}.200`)(e),borderColor:(0,eR.x)(`${t}.500`,`${t}.200`)(e),color:(0,eR.x)("white","gray.900")(e)},_disabled:{bg:(0,eR.x)("gray.100","whiteAlpha.100")(e),borderColor:(0,eR.x)("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:(0,eR.x)("red.500","red.300")(e)}}}),t3=(0,T.k0)({_disabled:{cursor:"not-allowed"}}),t5=(0,T.k0)({userSelect:"none",_disabled:{opacity:.4}}),t4=(0,T.k0)({transitionProperty:"transform",transitionDuration:"normal"}),t6=t0({baseStyle:tQ(e=>({icon:t4,container:t3,control:tX(t2,e),label:t5})),sizes:{sm:tQ({control:{[t1.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:tQ({control:{[t1.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:tQ({control:{[t1.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:t8,definePartsStyle:t9}=(0,T.D)(en.keys),t7=(0,T.k0)(e=>{var t;let n=null==(t=tX(t6.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),ne=t8({baseStyle:t9(e=>{var t,n;return{label:null==(t=t6.baseStyle)?void 0:t.call(t6,e).label,container:null==(n=t6.baseStyle)?void 0:n.call(t6,e).container,control:t7(e)}}),sizes:{md:t9({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:t9({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:t9({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nt,definePartsStyle:nn}=(0,T.D)(er.keys),nr=(0,T.gJ)("select-bg"),ni=nn({field:(0,T.k0)({...null==(f=tR.baseStyle)?void 0:f.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:nr.reference,[nr.variable]:"colors.white",_dark:{[nr.variable]:"colors.gray.700"},"> option, > optgroup":{bg:nr.reference}}),icon:(0,T.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),no=(0,T.k0)({paddingInlineEnd:"8"}),na=nt({baseStyle:ni,sizes:{lg:{...null==(m=tR.sizes)?void 0:m.lg,field:{...null==(g=tR.sizes)?void 0:g.lg.field,...no}},md:{...null==(v=tR.sizes)?void 0:v.md,field:{...null==(y=tR.sizes)?void 0:y.md.field,...no}},sm:{...null==(b=tR.sizes)?void 0:b.sm,field:{...null==(w=tR.sizes)?void 0:w.sm.field,...no}},xs:{...null==(k=tR.sizes)?void 0:k.xs,field:{...null==(x=tR.sizes)?void 0:x.xs.field,...no},icon:{insetEnd:"1"}}},variants:tR.variants,defaultProps:tR.defaultProps}),ns=(0,T.gJ)("skeleton-start-color"),nu=(0,T.gJ)("skeleton-end-color"),nl=(0,T.k0)({[ns.variable]:"colors.gray.100",[nu.variable]:"colors.gray.400",_dark:{[ns.variable]:"colors.gray.800",[nu.variable]:"colors.gray.600"},background:ns.reference,borderColor:nu.reference,opacity:.7,borderRadius:"sm"}),nc=(0,T.fj)({baseStyle:nl}),nd=(0,T.gJ)("skip-link-bg"),nh=(0,T.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nd.variable]:"colors.white",_dark:{[nd.variable]:"colors.gray.700"},bg:nd.reference}}),np=(0,T.fj)({baseStyle:nh}),{defineMultiStyleConfig:nf,definePartsStyle:nm}=(0,T.D)(ei.keys),ng=(0,T.gJ)("slider-thumb-size"),nv=(0,T.gJ)("slider-track-size"),ny=(0,T.gJ)("slider-bg"),nb=(0,T.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...(0,eR.f)({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),nw=(0,T.k0)(e=>({...(0,eR.f)({orientation:e.orientation,horizontal:{h:nv.reference},vertical:{w:nv.reference}}),overflow:"hidden",borderRadius:"sm",[ny.variable]:"colors.gray.200",_dark:{[ny.variable]:"colors.whiteAlpha.200"},_disabled:{[ny.variable]:"colors.gray.300",_dark:{[ny.variable]:"colors.whiteAlpha.300"}},bg:ny.reference})),nk=(0,T.k0)(e=>{let{orientation:t}=e;return{...(0,eR.f)({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:ng.reference,h:ng.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),nx=(0,T.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ny.variable]:`colors.${t}.500`,_dark:{[ny.variable]:`colors.${t}.200`},bg:ny.reference}}),n_=nf({baseStyle:nm(e=>({container:nb(e),track:nw(e),thumb:nk(e),filledTrack:nx(e)})),sizes:{lg:nm({container:{[ng.variable]:"sizes.4",[nv.variable]:"sizes.1"}}),md:nm({container:{[ng.variable]:"sizes.3.5",[nv.variable]:"sizes.1"}}),sm:nm({container:{[ng.variable]:"sizes.2.5",[nv.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),nS=eh("spinner-size"),nE=(0,T.k0)({width:[nS.reference],height:[nS.reference]}),nD={xs:(0,T.k0)({[nS.variable]:"sizes.3"}),sm:(0,T.k0)({[nS.variable]:"sizes.4"}),md:(0,T.k0)({[nS.variable]:"sizes.6"}),lg:(0,T.k0)({[nS.variable]:"sizes.8"}),xl:(0,T.k0)({[nS.variable]:"sizes.12"})},nC=(0,T.fj)({baseStyle:nE,sizes:nD,defaultProps:{size:"md"}}),{defineMultiStyleConfig:nj,definePartsStyle:nO}=(0,T.D)(eo.keys),nT=nj({baseStyle:nO({container:{},label:(0,T.k0)({fontWeight:"medium"}),helpText:(0,T.k0)({opacity:.8,marginBottom:"2"}),number:(0,T.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,T.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:nO({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),nA=(0,T.gJ)("kbd-bg"),nP=(0,T.k0)({[nA.variable]:"colors.gray.100",_dark:{[nA.variable]:"colors.whiteAlpha.100"},bg:nA.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),nR=(0,T.fj)({baseStyle:nP}),nM=(0,T.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),nF=(0,T.fj)({baseStyle:nM}),{defineMultiStyleConfig:nN,definePartsStyle:nI}=(0,T.D)(K.keys),nL=nN({baseStyle:nI({icon:(0,T.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:nB,definePartsStyle:nz}=(0,T.D)(J.keys),nU=(0,T.gJ)("menu-bg"),nq=(0,T.gJ)("menu-shadow"),n$=(0,T.k0)({[nU.variable]:"#fff",[nq.variable]:"shadows.sm",_dark:{[nU.variable]:"colors.gray.700",[nq.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:nU.reference,boxShadow:nq.reference}),nH=(0,T.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[nU.variable]:"colors.gray.100",_dark:{[nU.variable]:"colors.whiteAlpha.100"}},_active:{[nU.variable]:"colors.gray.200",_dark:{[nU.variable]:"colors.whiteAlpha.200"}},_expanded:{[nU.variable]:"colors.gray.100",_dark:{[nU.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:nU.reference}),nW=(0,T.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),nV=(0,T.k0)({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0}),nG=(0,T.k0)({opacity:.6}),nY=(0,T.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),nZ=nB({baseStyle:nz({button:(0,T.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:n$,item:nH,groupTitle:nW,icon:nV,command:nG,divider:nY})}),{defineMultiStyleConfig:nK,definePartsStyle:nJ}=(0,T.D)(X.keys),nX=(0,T.gJ)("modal-bg"),nQ=(0,T.gJ)("modal-shadow"),n0=(0,T.k0)({bg:"blackAlpha.600",zIndex:"modal"}),n1=(0,T.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}}),n2=(0,T.k0)(e=>{let{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[nX.variable]:"colors.white",[nQ.variable]:"shadows.lg",_dark:{[nX.variable]:"colors.gray.700",[nQ.variable]:"shadows.dark-lg"},bg:nX.reference,boxShadow:nQ.reference}}),n3=(0,T.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),n5=(0,T.k0)({position:"absolute",top:"2",insetEnd:"3"}),n4=(0,T.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),n6=(0,T.k0)({px:"6",py:"4"});function n8(e){return"full"===e?nJ({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):nJ({dialog:{maxW:e}})}var n9=nK({baseStyle:nJ(e=>({overlay:n0,dialogContainer:tX(n1,e),dialog:tX(n2,e),header:n3,closeButton:n5,body:tX(n4,e),footer:n6})),sizes:{xs:n8("xs"),sm:n8("sm"),md:n8("md"),lg:n8("lg"),xl:n8("xl"),"2xl":n8("2xl"),"3xl":n8("3xl"),"4xl":n8("4xl"),"5xl":n8("5xl"),"6xl":n8("6xl"),full:n8("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:n7,definePartsStyle:re}=(0,T.D)(Q.keys),rt=eh("number-input-stepper-width"),rn=eh("number-input-input-padding"),rr=ek(rt).add("0.5rem").toString(),ri=eh("number-input-bg"),ro=eh("number-input-color"),ra=eh("number-input-border-color"),rs=(0,T.k0)({[rt.variable]:"sizes.6",[rn.variable]:rr}),ru=(0,T.k0)(e=>{var t,n;return null!=(n=null==(t=tX(tR.baseStyle,e))?void 0:t.field)?n:{}}),rl=(0,T.k0)({width:rt.reference}),rc=(0,T.k0)({borderStart:"1px solid",borderStartColor:ra.reference,color:ro.reference,bg:ri.reference,[ro.variable]:"colors.chakra-body-text",[ra.variable]:"colors.chakra-border-color",_dark:{[ro.variable]:"colors.whiteAlpha.800",[ra.variable]:"colors.whiteAlpha.300"},_active:{[ri.variable]:"colors.gray.200",_dark:{[ri.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function rd(e){var t,n,r;let i=null==(t=tR.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(r=null==(n=i.field)?void 0:n.fontSize)?r:"md",s=D.fontSizes[a];return re({field:{...i.field,paddingInlineEnd:rn.reference,verticalAlign:"top"},stepper:{fontSize:ek(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var rh=n7({baseStyle:re(e=>{var t;return{root:rs,field:null!=(t=tX(ru,e))?t:{},stepperGroup:rl,stepper:rc}}),sizes:{xs:rd("xs"),sm:rd("sm"),md:rd("md"),lg:rd("lg")},variants:tR.variants,defaultProps:tR.defaultProps}),rp=(0,T.k0)({...null==(_=tR.baseStyle)?void 0:_.field,textAlign:"center"}),rf={lg:(0,T.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,T.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,T.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,T.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},rm={outline:(0,T.k0)(e=>{var t,n,r;return null!=(r=null==(n=tX(null==(t=tR.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}}),flushed:(0,T.k0)(e=>{var t,n,r;return null!=(r=null==(n=tX(null==(t=tR.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}}),filled:(0,T.k0)(e=>{var t,n,r;return null!=(r=null==(n=tX(null==(t=tR.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}}),unstyled:null!=(E=null==(S=tR.variants)?void 0:S.unstyled.field)?E:{}},rg=(0,T.fj)({baseStyle:rp,sizes:rf,variants:rm,defaultProps:tR.defaultProps}),{defineMultiStyleConfig:rv,definePartsStyle:ry}=(0,T.D)(ee.keys),rb=eh("popper-bg"),rw=eh("popper-arrow-bg"),rk=eh("popper-arrow-shadow-color"),rx=rv({baseStyle:ry({popper:(0,T.k0)({zIndex:10}),content:(0,T.k0)({[rb.variable]:"colors.white",bg:rb.reference,[rw.variable]:rb.reference,[rk.variable]:"colors.gray.200",_dark:{[rb.variable]:"colors.gray.700",[rk.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,T.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,T.k0)({px:3,py:2}),footer:(0,T.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,T.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:r_,defineMultiStyleConfig:rS}=(0,T.D)(W.keys),rE=(0,T.gJ)("drawer-bg"),rD=(0,T.gJ)("drawer-box-shadow");function rC(e){return"full"===e?r_({dialog:{maxW:"100vw",h:"100vh"}}):r_({dialog:{maxW:e}})}var rj=(0,T.k0)({bg:"blackAlpha.600",zIndex:"modal"}),rO=(0,T.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),rT=(0,T.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[rE.variable]:"colors.white",[rD.variable]:"shadows.lg",_dark:{[rE.variable]:"colors.gray.700",[rD.variable]:"shadows.dark-lg"},bg:rE.reference,boxShadow:rD.reference}}),rA=(0,T.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),rP=(0,T.k0)({position:"absolute",top:"2",insetEnd:"3"}),rR=(0,T.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),rM=(0,T.k0)({px:"6",py:"4"}),rF=rS({baseStyle:r_(e=>({overlay:rj,dialogContainer:rO,dialog:tX(rT,e),header:rA,closeButton:rP,body:rR,footer:rM})),sizes:{xs:rC("xs"),sm:rC("md"),md:rC("lg"),lg:rC("2xl"),xl:rC("4xl"),full:rC("full")},defaultProps:{size:"xs"}}),{definePartsStyle:rN,defineMultiStyleConfig:rI}=(0,T.D)(V.keys),rL=rI({baseStyle:rN({preview:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,T.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:rB,defineMultiStyleConfig:rz}=(0,T.D)(G.keys),rU=(0,T.gJ)("form-control-color"),rq=rz({baseStyle:rB({container:{width:"100%",position:"relative"},requiredIndicator:(0,T.k0)({marginStart:"1",[rU.variable]:"colors.red.500",_dark:{[rU.variable]:"colors.red.300"},color:rU.reference}),helperText:(0,T.k0)({mt:"2",[rU.variable]:"colors.gray.600",_dark:{[rU.variable]:"colors.whiteAlpha.600"},color:rU.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:r$,defineMultiStyleConfig:rH}=(0,T.D)(Y.keys),rW=(0,T.gJ)("form-error-color"),rV=rH({baseStyle:r$({text:(0,T.k0)({[rW.variable]:"colors.red.500",_dark:{[rW.variable]:"colors.red.300"},color:rW.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,T.k0)({marginEnd:"0.5em",[rW.variable]:"colors.red.500",_dark:{[rW.variable]:"colors.red.300"},color:rW.reference})})}),rG=(0,T.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),rY=(0,T.fj)({baseStyle:rG}),rZ=(0,T.k0)({fontFamily:"heading",fontWeight:"bold"}),rK={"4xl":(0,T.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,T.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,T.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,T.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,T.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,T.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,T.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,T.k0)({fontSize:"sm",lineHeight:1.2})},rJ=(0,T.fj)({baseStyle:rZ,sizes:rK,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:rX,definePartsStyle:rQ}=(0,T.D)($.keys),r0=(0,T.gJ)("breadcrumb-link-decor"),r1=rX({baseStyle:rQ({link:(0,T.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:r0.reference,[r0.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[r0.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),r2=(0,T.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),r3=(0,T.k0)(e=>{let{colorScheme:t,theme:n}=e;if("gray"===t)return{color:(0,eR.x)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,eR.x)("gray.100","whiteAlpha.200")(e)},_active:{bg:(0,eR.x)("gray.200","whiteAlpha.300")(e)}};let r=e3(`${t}.200`,.12)(n),i=e3(`${t}.200`,.24)(n);return{color:(0,eR.x)(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:(0,eR.x)(`${t}.50`,r)(e)},_active:{bg:(0,eR.x)(`${t}.100`,i)(e)}}}),r5=(0,T.k0)(e=>{let{colorScheme:t}=e,n=(0,eR.x)("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...tX(r3,e)}}),r4={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},r6=(0,T.k0)(e=>{var t;let{colorScheme:n}=e;if("gray"===n){let t=(0,eR.x)("gray.100","whiteAlpha.200")(e);return{bg:t,color:(0,eR.x)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,eR.x)("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:(0,eR.x)("gray.300","whiteAlpha.400")(e)}}}let{bg:r=`${n}.500`,color:i="white",hoverBg:o=`${n}.600`,activeBg:a=`${n}.700`}=null!=(t=r4[n])?t:{},s=(0,eR.x)(r,`${n}.200`)(e);return{bg:s,color:(0,eR.x)(i,"gray.800")(e),_hover:{bg:(0,eR.x)(o,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:(0,eR.x)(a,`${n}.400`)(e)}}}),r8=(0,T.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:(0,eR.x)(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:(0,eR.x)(`${t}.700`,`${t}.500`)(e)}}}),r9=(0,T.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),r7={lg:(0,T.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,T.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,T.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,T.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},ie=(0,T.fj)({baseStyle:r2,variants:{ghost:r3,outline:r5,solid:r6,link:r8,unstyled:r9},sizes:r7,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:it,defineMultiStyleConfig:ir}=(0,T.D)(ec.keys),ii=(0,T.gJ)("card-bg"),io=(0,T.gJ)("card-padding"),ia=(0,T.gJ)("card-shadow"),is=(0,T.gJ)("card-radius"),iu=(0,T.gJ)("card-border-width","0"),il=(0,T.gJ)("card-border-color"),ic=it({container:{[ii.variable]:"colors.chakra-body-bg",backgroundColor:ii.reference,boxShadow:ia.reference,borderRadius:is.reference,color:"chakra-body-text",borderWidth:iu.reference,borderColor:il.reference},body:{padding:io.reference,flex:"1 1 0%"},header:{padding:io.reference},footer:{padding:io.reference}}),id={sm:it({container:{[is.variable]:"radii.base",[io.variable]:"space.3"}}),md:it({container:{[is.variable]:"radii.md",[io.variable]:"space.5"}}),lg:it({container:{[is.variable]:"radii.xl",[io.variable]:"space.7"}})},ih=ir({baseStyle:ic,variants:{elevated:it({container:{[ia.variable]:"shadows.base",_dark:{[ii.variable]:"colors.gray.700"}}}),outline:it({container:{[iu.variable]:"1px",[il.variable]:"colors.chakra-border-color"}}),filled:it({container:{[ii.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[io.variable]:0},header:{[io.variable]:0},footer:{[io.variable]:0}}},sizes:id,defaultProps:{variant:"elevated",size:"md"}}),ip=eh("close-button-size"),im=eh("close-button-bg"),ig=(0,T.k0)({w:[ip.reference],h:[ip.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[im.variable]:"colors.blackAlpha.100",_dark:{[im.variable]:"colors.whiteAlpha.100"}},_active:{[im.variable]:"colors.blackAlpha.200",_dark:{[im.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:im.reference}),iv={lg:(0,T.k0)({[ip.variable]:"sizes.10",fontSize:"md"}),md:(0,T.k0)({[ip.variable]:"sizes.8",fontSize:"xs"}),sm:(0,T.k0)({[ip.variable]:"sizes.6",fontSize:"2xs"})},iy=(0,T.fj)({baseStyle:ig,sizes:iv,defaultProps:{size:"md"}}),{variants:ib,defaultProps:iw}=td,ik=(0,T.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ta.bg.reference,color:ta.color.reference,boxShadow:ta.shadow.reference}),ix=(0,T.fj)({baseStyle:ik,variants:ib,defaultProps:iw}),i_=(0,T.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),iS=(0,T.fj)({baseStyle:i_}),iE=(0,T.k0)({opacity:.6,borderColor:"inherit"}),iD=(0,T.k0)({borderStyle:"solid"}),iC=(0,T.k0)({borderStyle:"dashed"}),ij=(0,T.fj)({baseStyle:iE,variants:{solid:iD,dashed:iC},defaultProps:{variant:"solid"}}),{definePartsStyle:iO,defineMultiStyleConfig:iT}=(0,T.D)(z.keys),iA=iT({baseStyle:iO({container:(0,T.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,T.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,T.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,T.k0)({fontSize:"1.25em"})})}),{definePartsStyle:iP,defineMultiStyleConfig:iR}=(0,T.D)(U.keys),iM=(0,T.gJ)("alert-fg"),iF=(0,T.gJ)("alert-bg");function iN(e){let{theme:t,colorScheme:n}=e,r=e3(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var iI=iR({baseStyle:iP({container:{bg:iF.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:iM.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:iM.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:iP(e=>{let{colorScheme:t}=e,n=iN(e);return{container:{[iM.variable]:`colors.${t}.600`,[iF.variable]:n.light,_dark:{[iM.variable]:`colors.${t}.200`,[iF.variable]:n.dark}}}}),"left-accent":iP(e=>{let{colorScheme:t}=e,n=iN(e);return{container:{[iM.variable]:`colors.${t}.600`,[iF.variable]:n.light,_dark:{[iM.variable]:`colors.${t}.200`,[iF.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:iM.reference}}}),"top-accent":iP(e=>{let{colorScheme:t}=e,n=iN(e);return{container:{[iM.variable]:`colors.${t}.600`,[iF.variable]:n.light,_dark:{[iM.variable]:`colors.${t}.200`,[iF.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:iM.reference}}}),solid:iP(e=>{let{colorScheme:t}=e;return{container:{[iM.variable]:"colors.white",[iF.variable]:`colors.${t}.600`,_dark:{[iM.variable]:"colors.gray.900",[iF.variable]:`colors.${t}.200`},color:iM.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:iL,defineMultiStyleConfig:iB}=(0,T.D)(q.keys),iz=(0,T.gJ)("avatar-border-color"),iU=(0,T.gJ)("avatar-bg"),iq=(0,T.gJ)("avatar-font-size"),i$=(0,T.gJ)("avatar-size"),iH=(0,T.k0)({borderRadius:"full",border:"0.2em solid",borderColor:iz.reference,[iz.variable]:"white",_dark:{[iz.variable]:"colors.gray.800"}}),iW=(0,T.k0)({bg:iU.reference,fontSize:iq.reference,width:i$.reference,height:i$.reference,lineHeight:"1",[iU.variable]:"colors.gray.200",_dark:{[iU.variable]:"colors.whiteAlpha.400"}}),iV=(0,T.k0)(e=>{let{name:t,theme:n}=e,r=t?function(e){var t;let n=e4();return!e||eX(e)?n:e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t>8*e&255;n+=`00${r.toString(16)}`.substr(-2)}return n}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:n}({string:t}):"colors.gray.400",i=e2(r)(n),o="white";return i||(o="gray.800"),{bg:iU.reference,fontSize:iq.reference,color:o,borderColor:iz.reference,verticalAlign:"top",width:i$.reference,height:i$.reference,"&:not([data-loaded])":{[iU.variable]:r},[iz.variable]:"colors.white",_dark:{[iz.variable]:"colors.gray.800"}}}),iG=(0,T.k0)({fontSize:iq.reference,lineHeight:"1"});function iY(e){let t="100%"!==e?j[e]:void 0;return iL({container:{[i$.variable]:null!=t?t:e,[iq.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[i$.variable]:null!=t?t:e,[iq.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var iZ=iB({baseStyle:iL(e=>({badge:tX(iH,e),excessLabel:tX(iW,e),container:tX(iV,e),label:iG})),sizes:{"2xs":iY(4),xs:iY(6),sm:iY(8),md:iY(12),lg:iY(16),xl:iY(24),"2xl":iY(32),full:iY("100%")},defaultProps:{size:"md"}}),iK={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},iJ={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},iX={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},iQ={semanticTokens:iK,direction:"ltr",...O,components:{Accordion:iA,Alert:iI,Avatar:iZ,Badge:td,Breadcrumb:r1,Button:ie,Checkbox:t6,CloseButton:iy,Code:ix,Container:iS,Divider:ij,Drawer:rF,Editable:rL,Form:rq,FormError:rV,FormLabel:rY,Heading:rJ,Input:tR,Kbd:nR,Link:nF,List:nL,Menu:nZ,Modal:n9,NumberInput:rh,PinInput:rg,Popover:rx,Progress:tK,Radio:ne,Select:na,Skeleton:nc,SkipLink:np,Slider:n_,Spinner:nC,Stat:nT,Switch:eP,Table:eL,Tabs:to,Tag:t_,Textarea:tI,Tooltip:tq,Card:ih,Stepper:L},styles:iJ,config:iX},i0={semanticTokens:iK,direction:"ltr",components:{},...O,styles:iJ,config:iX}},64836:function(e,t,n){"use strict";n.d(t,{Qi:function(){return v},VW:function(){return b},OX:function(){return y}});var r=n(28347),i=n(2784),o=n(90359),a=n(3171),s=n(31053),u=n(58175),l=n(7165),c=n(59576),d=n(52322),h={initial:e=>{let{position:t}=e,n=["top","bottom"].includes(t)?"y":"x",r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},p=(0,i.memo)(e=>{let{id:t,message:n,onCloseComplete:p,onRequestRemove:f,requestClose:m=!1,position:g="bottom",duration:v=5e3,containerStyle:y,motionVariants:b=h,toastSpacing:w="0.5rem"}=e,[k,x]=(0,i.useState)(v),_=(0,u.hO)();(0,a.r)(()=>{_||null==p||p()},[_]),(0,a.r)(()=>{x(v)},[v]);let S=()=>{_&&f()};(0,i.useEffect)(()=>{_&&m&&f()},[_,m,f]),function(e,t){let n=(0,o.W)(e);(0,i.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{n()},t),()=>{e&&window.clearTimeout(e)}},[t,n])}(S,k);let E=(0,i.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...y}),[y,w]),D=(0,i.useMemo)(()=>(0,r.sv)(g),[g]);return(0,d.jsx)(l.E.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>x(null),onHoverEnd:()=>x(v),custom:{position:g},style:D,children:(0,d.jsx)(c.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:E,children:(0,s.Pu)(n,{id:t,onClose:S})})})});p.displayName="ToastComponent";var f=n(13905),m=n(88241),g=n(332),[v,y]=(0,n(9165).k)({name:"ToastOptionsContext",strict:!1}),b=e=>{let t=(0,i.useSyncExternalStore)(f.fp.subscribe,f.fp.getState,f.fp.getState),{motionVariants:n,component:o=p,portalProps:a}=e,s=Object.keys(t).map(e=>{let i=t[e];return(0,d.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:(0,r.IW)(e),children:(0,d.jsx)(m.M,{initial:!1,children:i.map(e=>(0,d.jsx)(o,{motionVariants:n,...e},e.id))})},e)});return(0,d.jsx)(g.h,{...a,children:s})}},70065:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var r=n(64836),i=n(13905),o=n(48929),a=n(2784);function s(e){let{theme:t}=(0,o.uP)(),n=(0,r.OX)();return(0,a.useMemo)(()=>(0,i.Cj)(t.direction,{...n,...e}),[e,t.direction,n])}},54839:function(e,t,n){"use strict";n.d(t,{I:function(){return c}});var r=n(64836),i=n(13905),o=n(15706),a=n(50019),s=n(48696),u=n(52322),l={theme:s.rS,colorMode:"light",toggleColorMode:()=>{},setColorMode:()=>{},defaultOptions:{duration:5e3,variant:"solid"},forced:!1};function c({theme:e=l.theme,colorMode:t=l.colorMode,toggleColorMode:n=l.toggleColorMode,setColorMode:s=l.setColorMode,defaultOptions:c=l.defaultOptions,motionVariants:d,toastSpacing:h,component:p,forced:f}=l){let m={colorMode:t,setColorMode:s,toggleColorMode:n,forced:f};return{ToastContainer:()=>(0,u.jsx)(o.f6,{theme:e,children:(0,u.jsx)(a.kc.Provider,{value:m,children:(0,u.jsx)(r.VW,{defaultOptions:c,motionVariants:d,toastSpacing:h,component:p})})}),toast:(0,i.Cj)(e.direction,c)}}},13905:function(e,t,n){"use strict";n.d(t,{Cj:function(){return g},fp:function(){return h}});var r=n(28347),i=n(47443),o=n(52929),a=n(80877),s=n(74444),u=n(59576),l=n(81672),c=n(31053),d=n(52322),h=function(e){let t=e,n=new Set,i=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{i(()=>e),n.delete(t)}),removeToast:(e,t)=>{i(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let n=function(e,t={}){var n,r;p+=1;let i=null!=(n=t.id)?n:p,o=null!=(r=t.position)?r:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>h.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:r,id:o}=n;return i(e=>{var t,i;let o=r.includes("top")?[n,...null!=(t=e[r])?t:[]]:[...null!=(i=e[r])?i:[],n];return{...e,[r]:o}}),o},update:(e,t)=>{e&&i(n=>{let i={...n},{position:o,index:a}=(0,r.Dn)(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:m(t)}),i})},closeAll:({positions:e}={})=>{i(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{i(t=>{let n=(0,r.ym)(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,r.Dn)(h.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),p=0,f=e=>{let{status:t,variant:n="solid",id:r,title:c,isClosable:h,onClose:p,description:f,colorScheme:m,icon:g}=e,v=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,d.jsxs)(i.b,{addRole:!1,status:t,variant:n,id:null==v?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:m,children:[(0,d.jsx)(o.z,{children:g}),(0,d.jsxs)(u.m.div,{flex:"1",maxWidth:"100%",children:[c&&(0,d.jsx)(a.C,{id:null==v?void 0:v.title,children:c}),f&&(0,d.jsx)(s.X,{id:null==v?void 0:v.description,display:"block",children:f})]}),h&&(0,d.jsx)(l.P,{size:"sm",onClick:p,position:"absolute",insetEnd:1,top:1})]})};function m(e={}){let{render:t,toastComponent:n=f}=e;return r=>"function"==typeof t?t({...r,...e}):(0,d.jsx)(n,{...r,...e})}function g(e,t){let n=n=>{var r;return{...t,...n,position:function(e,t){var n;let r=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!=(n=null==i?void 0:i[t])?n:r}(null!=(r=null==n?void 0:n.position)?r:null==t?void 0:t.position,e)}},r=e=>{let t=n(e),r=m(t);return h.notify(r,t)};return r.update=(e,t)=>{h.update(e,n(t))},r.promise=(e,t)=>{let n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...(0,c.Pu)(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...(0,c.Pu)(t.error,e)}))},r.closeAll=h.closeAll,r.close=h.close,r.isActive=h.isActive,r}},28347:function(e,t,n){"use strict";n.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});var r=(e,t)=>e.find(e=>e.id===t);function i(e,t){let n=o(e,t),r=n?e[n].findIndex(e=>e.id===t):-1;return{position:n,index:r}}function o(e,t){for(let[n,i]of Object.entries(e))if(r(i,t))return n}function a(e){let t=e.includes("right"),n=e.includes("left"),r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,r=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:n,right:r,left:i}}},41914:function(e,t,n){"use strict";n.d(t,{Lj:function(){return r},Sh:function(){return a},js:function(){return o},p$:function(){return s}});var r={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function o(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}var a={enter:{duration:.2,ease:r.easeOut},exit:{duration:.1,ease:r.easeIn}},s={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},55070:function(e,t,n){"use strict";n.d(t,{M:function(){return d}});var r=n(41914),i=n(31053),o=n(88241),a=n(7165),s=n(2784),u=n(52322),l={exit:{duration:.15,ease:r.Lj.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},c={exit:({direction:e,transition:t,transitionEnd:n,delay:i})=>{var o;let{exit:a}=(0,r.js)({direction:e});return{...a,transition:null!=(o=null==t?void 0:t.exit)?o:r.p$.exit(l.exit,i),transitionEnd:null==n?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:i})=>{var o;let{enter:a}=(0,r.js)({direction:e});return{...a,transition:null!=(o=null==n?void 0:n.enter)?o:r.p$.enter(l.enter,i),transitionEnd:null==t?void 0:t.enter}}},d=(0,s.forwardRef)(function(e,t){let{direction:n="right",style:s,unmountOnExit:l,in:d,className:h,transition:p,transitionEnd:f,delay:m,motionProps:g,...v}=e,y=Object.assign({position:"fixed"},(0,r.js)({direction:n}).position,s),b=!l||d&&l,w=d||l?"enter":"exit",k={transitionEnd:f,transition:p,direction:n,delay:m};return(0,u.jsx)(o.M,{custom:k,children:b&&(0,u.jsx)(a.E.div,{...v,ref:t,initial:"exit",className:(0,i.cx)("chakra-slide",h),animate:w,exit:"exit",custom:k,variants:c,style:y,...g})})});d.displayName="Slide"},87651:function(e,t,n){"use strict";n.d(t,{U:function(){return h}});var r=n(41914),i=n(31053),o=n(88241),a=n(7165),s=n(2784),u=n(52322),l=e=>null!=e&&parseInt(e.toString(),10)>0,c={exit:{height:{duration:.2,ease:r.Lj.ease},opacity:{duration:.3,ease:r.Lj.ease}},enter:{height:{duration:.3,ease:r.Lj.ease},opacity:{duration:.4,ease:r.Lj.ease}}},d={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:i,delay:o})=>{var a;return{...e&&{opacity:l(t)?1:0},height:t,transitionEnd:null==i?void 0:i.exit,transition:null!=(a=null==n?void 0:n.exit)?a:r.p$.exit(c.exit,o)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:i,delay:o})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:null==i?void 0:i.enter,transition:null!=(a=null==n?void 0:n.enter)?a:r.p$.enter(c.enter,o)}}},h=(0,s.forwardRef)((e,t)=>{let{in:n,unmountOnExit:r,animateOpacity:l=!0,startingHeight:c=0,endingHeight:h="auto",style:p,className:f,transition:m,transitionEnd:g,...v}=e,[y,b]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=setTimeout(()=>{b(!0)});return()=>clearTimeout(e)},[]),(0,i.ZK)({condition:Number(c)>0&&!!r,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});let w=parseFloat(c.toString())>0,k={startingHeight:c,endingHeight:h,animateOpacity:l,transition:y?m:{enter:{duration:0}},transitionEnd:{enter:null==g?void 0:g.enter,exit:r?null==g?void 0:g.exit:{...null==g?void 0:g.exit,display:w?"block":"none"}}},x=!r||n,_=n||r?"enter":"exit";return(0,u.jsx)(o.M,{initial:!1,custom:k,children:x&&(0,u.jsx)(a.E.div,{ref:t,...v,className:(0,i.cx)("chakra-collapse",f),style:{overflow:"hidden",display:"block",...p},custom:k,variants:d,initial:!!r&&"exit",animate:_,exit:"exit"})})});h.displayName="Collapse"},78071:function(e,t,n){"use strict";n.d(t,{p:function(){return c},u:function(){return l}});var r=n(41914),i=n(31053),o=n(88241),a=n(7165),s=n(2784),u=n(52322),l={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:n}={})=>{var i;return{opacity:1,transition:null!=(i=null==e?void 0:e.enter)?i:r.p$.enter(r.Sh.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var i;return{opacity:0,transition:null!=(i=null==e?void 0:e.exit)?i:r.p$.exit(r.Sh.exit,n),transitionEnd:null==t?void 0:t.exit}}}},c=(0,s.forwardRef)(function(e,t){let{unmountOnExit:n,in:r,className:s,transition:c,transitionEnd:d,delay:h,...p}=e,f=r||n?"enter":"exit",m=!n||r&&n,g={transition:c,transitionEnd:d,delay:h};return(0,u.jsx)(o.M,{custom:g,children:m&&(0,u.jsx)(a.E.div,{ref:t,className:(0,i.cx)("chakra-fade",s),custom:g,...l,animate:f,...p})})});c.displayName="Fade"},26847:function(e,t,n){"use strict";n.d(t,{t5:function(){return o}});var r=n(4428),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&i(e))}},2208:function(e,t,n){"use strict";n.d(t,{y:function(){return d},px:function(){return o}});var r=n(82115),i=n(93429);function o(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||(0,i.hj)(e)?`${e}px`:e}var a=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,s=e=>(0,r.sq)(Object.entries(e).sort(a));function u(e){let t=s(e);return Object.assign(Object.values(t),t)}function l(e){var t;if(!e)return e;let n=(e=null!=(t=o(e))?t:e).endsWith("px")?-.02:-.01;return(0,i.hj)(e)?`${e+n}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+n}`)}function c(e,t){let n=["@media screen"];return e&&n.push("and",`(min-width: ${o(e)})`),t&&n.push("and",`(max-width: ${o(t)})`),n.join(" ")}function d(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let n=u(e),r=Object.entries(e).sort(a).map(([e,t],n,r)=>{var i;let[,o]=null!=(i=r[n+1])?i:[];return o=parseFloat(o)>0?l(o):void 0,{_minW:l(t),breakpoint:e,minW:t,maxW:o,maxWQuery:c(null,o),minWQuery:c(t),minMaxQuery:c(t,o)}}),o=new Set(Object.keys(s(e))),d=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:s(e),asArray:u(e),details:r,media:[null,...n.map(e=>c(e)).slice(1)],toArrayValue(e){if(!(0,i.Kn)(e))throw Error("toArrayValue: value must be an object");let t=d.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{let r=d[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}},85642:function(e,t,n){"use strict";n.d(t,{Yq:function(){return i}});var r=Object.freeze(["base","sm","md","lg","xl","2xl"]);function i(e,t=r){let n={};return e.forEach((e,r)=>{let i=t[r];null!=e&&(n[i]=e)}),n}},79729:function(e,t,n){"use strict";let r;n.d(t,{Pu:function(){return a},ZK:function(){return l},ZT:function(){return u},v0:function(){return s}});var i,o=n(93429);function a(e,...t){return(0,o.mf)(e)?e(...t):e}function s(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var u=()=>{},l=(i=e=>()=>{let{condition:t,message:n}=e;t&&o.Ts&&console.warn(n)},function(...e){return i&&(r=i.apply(this,e),i=null),r})},73200:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!r(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}function o(e){var t;return r(e)&&null!=(t=e.ownerDocument)?t:document}n.d(t,{Re:function(){return i},cx:function(){return s},jU:function(){return a},lZ:function(){return o}});var a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),s=(...e)=>e.filter(Boolean).join(" ")},4428:function(e,t,n){"use strict";n.d(t,{EB:function(){return s},H9:function(){return a},cK:function(){return o}});var r=n(73200),i=e=>e.hasAttribute("tabindex");function o(e){return(0,r.Re)(e)&&"input"===e.localName&&"select"in e}function a(e){return((0,r.Re)(e)?(0,r.lZ)(e):document).activeElement===e}function s(e){var t;if(!(0,r.Re)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in o?o[n]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}},99903:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(4428),i=n(73200),o=n(79729);function a(e,t={}){let{isActive:n=r.H9,nextTick:a,preventScroll:u=!0,selectTextIfInput:l=!0}=t;if(!e||n(e))return -1;function c(){if(!e){(0,o.ZK)({condition:!0,message:"[chakra-ui]: can't call focus() on `null` or `undefined` element"});return}!function(){if(null==s){s=!1;try{document.createElement("div").focus({get preventScroll(){return s=!0,!0}})}catch(e){}}return s}()?(e.focus(),u&&function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(function(e){var t;let n=(0,i.lZ)(e),r=null!=(t=n.defaultView)?t:window,o=e.parentNode,a=[],s=n.scrollingElement||n.documentElement;for(;o instanceof r.HTMLElement&&o!==s;)(o.offsetHeight{t.includes(r)||(n[r]=e[r])}),n}function i(e,t){let n={};return t.forEach(t=>{t in e&&(n[t]=e[t])}),n}n.d(t,{CE:function(){return r},K1:function(){return l},Wf:function(){return o},YU:function(){return s},ei:function(){return i},lw:function(){return a},sq:function(){return u}}),n(63637);var o=(e=>{let t=new WeakMap;return(n,r,i,o)=>{if(void 0===n)return e(n,r,i);t.has(n)||t.set(n,new Map);let a=t.get(n);if(a.has(r))return a.get(r);let s=e(n,r,i,o);return a.set(r,s),s}})(function(e,t,n,r){let i="string"==typeof t?t.split("."):[t];for(r=0;r{let i=e[r];t(i,r,e)&&(n[r]=i)}),n}var s=e=>a(e,e=>null!=e),u=e=>e.reduce((e,[t,n])=>(e[t]=n,e),{}),l=(e,t,n)=>{var r,i,o;return null!=(o=null==(i=null==(r=e.__cssMap)?void 0:r[`${t}.${n}`])?void 0:i.varRef)?o:n}},51679:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}},50423:function(e,t,n){"use strict";n.d(t,{TX:function(){return o}});var r=n(51679),i=n(59576),o=(0,i.m)("span",{baseStyle:r.N});o.displayName="VisuallyHidden",(0,i.m)("input",{baseStyle:r.N}).displayName="VisuallyHiddenInput"},81674:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function eh(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ep(e){return e.classList?eh(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function ef(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function em(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function eg(e){return e.size!==ec.size||e.x!==ec.x||e.y!==ec.y||e.rotate!==ec.rotate||e.flipX||e.flipY}function ev(){var e=eu.cssPrefix,t=eu.replacementClass,n=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, 0));\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==e||t!==R){var r=RegExp("\\.".concat("fa","\\-"),"g"),i=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(R),"g");n=n.replace(r,".".concat(e,"-")).replace(i,"--".concat(e,"-")).replace(o,".".concat(t))}return n}var ey=!1;function eb(){eu.autoAddCss&&!ey&&(!function(e){if(e&&T){var t=C.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=C.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(r=o)}C.head.insertBefore(t,r)}}(ev()),ey=!0)}var ew=D||{};ew[P]||(ew[P]={}),ew[P].styles||(ew[P].styles={}),ew[P].hooks||(ew[P].hooks={}),ew[P].shims||(ew[P].shims=[]);var ek=ew[P],ex=[],e_=!1;function eS(e){var t,n=e.tag,r=e.attributes,i=e.children;return"string"==typeof e?ef(e):"<".concat(n," ").concat(Object.keys((t=void 0===r?{}:r)||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(ef(t[n]),'" ')},"").trim(),">").concat((void 0===i?[]:i).map(eS).join(""),"")}function eE(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}!T||(e_=(C.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(C.readyState))||C.addEventListener("DOMContentLoaded",function e(){C.removeEventListener("DOMContentLoaded",e),e_=1,ex.map(function(e){return e()})});var eD=function(e,t,n,r){var i,o,a,s=Object.keys(e),u=s.length,l=void 0!==r?function(e,n,i,o){return t.call(r,e,n,i,o)}:t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i=55296&&i<=56319&&n2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=ej(t);"function"!=typeof ek.hooks.addPack||void 0!==r&&r?ek.styles[e]=i(i({},ek.styles[e]||{}),o):ek.hooks.addPack(e,ej(t)),"fas"===e&&eO("fa",t)}var eT=ek.styles,eA=ek.shims,eP=(a(g={},U,Object.values(G[U])),a(g,q,Object.values(G[q])),g),eR=null,eM={},eF={},eN={},eI={},eL={},eB=(a(v={},U,Object.keys(W[U])),a(v,q,Object.keys(W[q])),v),ez=function(){var e=function(e){return eD(eT,function(t,n,r){return t[r]=eD(n,e,{}),t},{})};eM=e(function(e,t,n){return t[3]&&(e[t[3]]=n),t[2]&&t[2].filter(function(e){return"number"==typeof e}).forEach(function(t){e[t.toString(16)]=n}),e}),eF=e(function(e,t,n){return e[n]=n,t[2]&&t[2].filter(function(e){return"string"==typeof e}).forEach(function(t){e[t]=n}),e}),eL=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in eT||eu.autoFetchSvg,n=eD(eA,function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e},{names:{},unicodes:{}});eN=n.names,eI=n.unicodes,eR=eW(eu.styleDefault,{family:eu.familyDefault})};function eU(e,t){return(eM[e]||{})[t]}function eq(e,t){return(eL[e]||{})[t]}function e$(e){return eN[e]||{prefix:null,iconName:null}}el.push(function(e){eR=eW(e.styleDefault,{family:eu.familyDefault})}),ez();var eH=function(){return{prefix:null,iconName:null,rest:[]}};function eW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,r=void 0===n?U:n,i=W[r][e],o=V[r][e]||V[r][i],a=e in ek.styles?e:null;return o||a||null}var eV=(a(y={},U,Object.keys(G[U])),a(y,q,Object.keys(G[q])),y);function eG(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipLookups,i=void 0!==r&&r,o=(a(t={},U,"".concat(eu.cssPrefix,"-").concat(U)),a(t,q,"".concat(eu.cssPrefix,"-").concat(q)),t),s=null,u=U;(e.includes(o[U])||e.some(function(e){return eV[U].includes(e)}))&&(u=U),(e.includes(o[q])||e.some(function(e){return eV[q].includes(e)}))&&(u=q);var l=e.reduce(function(e,t){var n,r,a,l,c=(n=eu.cssPrefix,a=(r=t.split("-"))[0],l=r.slice(1).join("-"),a!==n||""===l||~ei.indexOf(l)?null:l);if(eT[t]?(s=t=eP[u].includes(t)?Y[u][t]:t,e.prefix=t):eB[u].indexOf(t)>-1?(s=t,e.prefix=eW(t,{family:u})):c?e.iconName=c:t!==eu.replacementClass&&t!==o[U]&&t!==o[q]&&e.rest.push(t),!i&&e.prefix&&e.iconName){var d="fa"===s?e$(e.iconName):{},h=eq(e.prefix,e.iconName);d.prefix&&(s=null),e.iconName=d.iconName||h||e.iconName,e.prefix=d.prefix||e.prefix,"far"!==e.prefix||eT.far||!eT.fas||eu.autoFetchSvg||(e.prefix="fas")}return e},eH());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&u===q&&(eT.fass||eu.autoFetchSvg)&&(l.prefix="fass",l.iconName=eq(l.prefix,l.iconName)||l.iconName),("fa"===l.prefix||"fa"===s)&&(l.prefix=eR||"fas"),l}var eY=function(){var e;function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}return e=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r0&&s.forEach(function(t){"string"==typeof t&&(e[i][t]=a)}),e[i][o]=a}),e}}],function(e,t){for(var n=0;n2?n-2:0),i=2;i1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};return T?(e0("beforeI2svg",e),e1("pseudoElements2svg",e),e1("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot;!1===eu.autoReplaceSvg&&(eu.autoReplaceSvg=!0),eu.observeMutations=!0,e=function(){e4({autoReplaceSvgRoot:n}),e0("watch",t)},T&&(e_?setTimeout(e,0):ex.push(e))}},parse:{icon:function(e){if(null===e)return null;if("object"===o(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:eq(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=eW(e[0]);return{prefix:n,iconName:eq(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(eu.cssPrefix,"-"))>-1||e.match(Z))){var r=eG(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||eR,iconName:eq(r.prefix,r.iconName)||r.iconName}}if("string"==typeof e){var i=eR;return{prefix:i,iconName:eq(i,e)||e}}}},library:e3,findIconDefinition:e2,toHtml:eS},e4=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?C:t;(Object.keys(ek.styles).length>0||eu.autoFetchSvg)&&T&&eu.autoReplaceSvg&&e5.dom.i2svg({node:n})};function e6(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return eS(e)})}}),Object.defineProperty(e,"node",{get:function(){if(T){var t=C.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function e8(e){var t,n,r,o,a,s,u=e.icons,l=u.main,c=u.mask,d=e.prefix,h=e.iconName,p=e.transform,f=e.symbol,m=e.title,g=e.maskId,v=e.titleId,y=e.extra,b=e.watchable,w=c.found?c:l,k=w.width,x=w.height,_="fak"===d,S=[eu.replacementClass,h?"".concat(eu.cssPrefix,"-").concat(h):""].filter(function(e){return -1===y.classes.indexOf(e)}).filter(function(e){return""!==e||!!e}).concat(y.classes).join(" "),E={children:[],attributes:i(i({},y.attributes),{},{"data-prefix":d,"data-icon":h,class:S,role:y.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(k," ").concat(x)})},D=_&&!~y.classes.indexOf("fa-fw")?{width:"".concat(k/x*1,"em")}:{};void 0!==b&&b&&(E.attributes[M]=""),m&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(v||ed())},children:[m]}),delete E.attributes.title);var C=i(i({},E),{},{prefix:d,iconName:h,main:l,mask:c,maskId:g,transform:p,symbol:f,styles:i(i({},D),y.styles)}),j=c.found&&l.found?e1("generateAbstractMask",C)||{children:[],attributes:{}}:e1("generateAbstractIcon",C)||{children:[],attributes:{}},O=j.children,T=j.attributes;return(C.children=O,C.attributes=T,f)?(t=C.prefix,n=C.iconName,r=C.children,o=C.attributes,s=!0===(a=C.symbol)?"".concat(t,"-").concat(eu.cssPrefix,"-").concat(n):a,[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i(i({},o),{},{id:s}),children:r}]}]):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,s=e.transform;if(eg(s)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};o.style=em(i(i({},a),{},{"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}function e9(e){var t,n,r,o,a,s,u,l=e.content,c=e.width,d=e.height,h=e.transform,p=e.title,f=e.extra,m=e.watchable,g=i(i(i({},f.attributes),p?{title:p}:{}),{},{class:f.classes.join(" ")});void 0!==m&&m&&(g[M]="");var v=i({},f.styles);eg(h)&&(v.transform=(n=(t={transform:h,startCentered:!0,width:c,height:d}).transform,r=t.width,o=t.height,s=void 0!==(a=t.startCentered)&&a,u="",s&&A?u+="translate(".concat(n.x/16-(void 0===r?16:r)/2,"em, ").concat(n.y/16-(void 0===o?16:o)/2,"em) "):s?u+="translate(calc(-50% + ".concat(n.x/16,"em), calc(-50% + ").concat(n.y/16,"em)) "):u+="translate(".concat(n.x/16,"em, ").concat(n.y/16,"em) "),u+="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") ")+"rotate(".concat(n.rotate,"deg) ")),v["-webkit-transform"]=v.transform);var y=em(v);y.length>0&&(g.style=y);var b=[];return b.push({tag:"span",attributes:g,children:[l]}),p&&b.push({tag:"span",attributes:{class:"sr-only"},children:[p]}),b}var e7=ek.styles;function te(e){var t=e[0],n=e[1],r=s(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(eu.cssPrefix,"-").concat(en.GROUP)},children:[{tag:"path",attributes:{class:"".concat(eu.cssPrefix,"-").concat(en.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(eu.cssPrefix,"-").concat(en.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var tt={found:!1,width:512,height:512};function tn(e,t){var n=t;return"fa"===t&&null!==eu.styleDefault&&(t=eR),new Promise(function(r,o){if(e1("missingIconAbstract"),"fa"===n){var a,s,u=e$(e)||{};e=u.iconName||e,t=u.prefix||t}if(e&&t&&e7[t]&&e7[t][e])return r(te(e7[t][e]));a=e,s=t,z||eu.showMissingIcons||!a||console.error('Icon with name "'.concat(a,'" and prefix "').concat(s,'" is missing.')),r(i(i({},tt),{},{icon:eu.showMissingIcons&&e&&e1("missingIconAbstract")||{}}))})}var tr=function(){},ti=eu.measurePerformance&&O&&O.mark&&O.measure?O:{mark:tr,measure:tr},to='FA "6.5.2"',ta=function(e){ti.mark("".concat(to," ").concat(e," ends")),ti.measure("".concat(to," ").concat(e),"".concat(to," ").concat(e," begins"),"".concat(to," ").concat(e," ends"))},ts={begin:function(e){return ti.mark("".concat(to," ").concat(e," begins")),function(){return ta(e)}}},tu=function(){};function tl(e){return"string"==typeof(e.getAttribute?e.getAttribute(M):null)}function tc(e){return C.createElementNS("http://www.w3.org/2000/svg",e)}function td(e){return C.createElement(e)}var th={replace:function(e){var t=e[0];if(t.parentNode){if(e[1].forEach(function(e){t.parentNode.insertBefore(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.ceFn,i=void 0===r?"svg"===t.tag?tc:td:r;if("string"==typeof t)return C.createTextNode(t);var o=i(t.tag);return Object.keys(t.attributes||[]).forEach(function(e){o.setAttribute(e,t.attributes[e])}),(t.children||[]).forEach(function(t){o.appendChild(e(t,{ceFn:i}))}),o}(e),t)}),null===t.getAttribute(M)&&eu.keepOriginalSource){var n,r=C.createComment((n=" ".concat(t.outerHTML," "),n="".concat(n,"Font Awesome fontawesome.com ")));t.parentNode.replaceChild(r,t)}else t.remove()}},nest:function(e){var t=e[0],n=e[1];if(~ep(t).indexOf(eu.replacementClass))return th.replace(e);var r=new RegExp("".concat(eu.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(e,t){return t===eu.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var o=n.map(function(e){return eS(e)}).join("\n");t.setAttribute(M,""),t.innerHTML=o}};function tp(e){e()}function tf(e,t){var n="function"==typeof t?t:tu;if(0===e.length)n();else{var r=tp;"async"===eu.mutateApproach&&(r=D.requestAnimationFrame||tp),r(function(){var t=!0===eu.autoReplaceSvg?th.replace:th[eu.autoReplaceSvg]||th.replace,r=ts.begin("mutate");e.map(t),r(),n()})}}var tm=!1,tg=null;function tv(e){if(j&&eu.observeMutations){var t=e.treeCallback,n=void 0===t?tu:t,r=e.nodeCallback,i=void 0===r?tu:r,o=e.pseudoElementsCallback,a=void 0===o?tu:o,s=e.observeMutationsRoot,u=void 0===s?C:s;tg=new j(function(e){if(!tm){var t=eR;eh(e).forEach(function(e){if("childList"===e.type&&e.addedNodes.length>0&&!tl(e.addedNodes[0])&&(eu.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&eu.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&tl(e.target)&&~et.indexOf(e.attributeName)){if("class"===e.attributeName&&(o=(r=e.target).getAttribute?r.getAttribute(N):null,s=r.getAttribute?r.getAttribute(I):null,o&&s)){var r,o,s,u,l=eG(ep(e.target)),c=l.prefix,d=l.iconName;e.target.setAttribute(N,c||t),d&&e.target.setAttribute(I,d)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(eu.replacementClass)&&i(e.target)}})}}),T&&tg.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ty(e){var t,n,r,o,a,s,u,l,c,d,h,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},f=(r=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),a=void 0!==e.innerText?e.innerText.trim():"",(s=eG(ep(e))).prefix||(s.prefix=eR),r&&o&&(s.prefix=r,s.iconName=o),s.iconName&&s.prefix||(s.prefix&&a.length>0&&(s.iconName=(t=s.prefix,n=e.innerText,(eF[t]||{})[n]||eU(s.prefix,eC(e.innerText)))),!s.iconName&&eu.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s),m=f.iconName,g=f.prefix,v=f.rest,y=(u=eh(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),l=e.getAttribute("title"),c=e.getAttribute("data-fa-title-id"),eu.autoA11y&&(l?u["aria-labelledby"]="".concat(eu.replacementClass,"-title-").concat(c||ed()):(u["aria-hidden"]="true",u.focusable="false")),u),b=eQ("parseNodeAttributes",{},e),w=p.styleParser?(d=e.getAttribute("style"),h=[],d&&(h=d.split(";").reduce(function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e},{})),h):[];return i({iconName:m,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:g,transform:ec,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:v,styles:w,attributes:y}},b)}var tb=ek.styles;function tw(e){var t="nest"===eu.autoReplaceSvg?ty(e,{styleParser:!1}):ty(e);return~t.extra.classes.indexOf(K)?e1("generateLayersText",e,t):e1("generateSvgReplacementMutation",e,t)}var tk=new Set;function tx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!T)return Promise.resolve();var n=C.documentElement.classList,r=function(e){return n.add("".concat(L,"-").concat(e))},i=function(e){return n.remove("".concat(L,"-").concat(e))},o=eu.autoFetchSvg?tk:$.map(function(e){return"fa-".concat(e)}).concat(Object.keys(tb));o.includes("fa")||o.push("fa");var a=[".".concat(K,":not([").concat(M,"])")].concat(o.map(function(e){return".".concat(e,":not([").concat(M,"])")})).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=eh(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=ts.begin("onTree"),l=s.reduce(function(e,t){try{var n=tw(t);n&&e.push(n)}catch(e){z||"MissingIcon"!==e.name||console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){tf(n,function(){r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),u(),e()})}).catch(function(e){u(),n(e)})})}function t_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;tw(e).then(function(e){e&&tf([e],t)})}$.map(function(e){tk.add("fa-".concat(e))}),Object.keys(W[U]).map(tk.add.bind(tk)),Object.keys(W[q]).map(tk.add.bind(tk)),tk=u(tk);var tS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ec:n,o=t.symbol,a=void 0!==o&&o,s=t.mask,u=void 0===s?null:s,l=t.maskId,c=void 0===l?null:l,d=t.title,h=void 0===d?null:d,p=t.titleId,f=void 0===p?null:p,m=t.classes,g=void 0===m?[]:m,v=t.attributes,y=void 0===v?{}:v,b=t.styles,w=void 0===b?{}:b;if(e){var k=e.prefix,x=e.iconName,_=e.icon;return e6(i({type:"icon"},e),function(){return e0("beforeDOMElementCreation",{iconDefinition:e,params:t}),eu.autoA11y&&(h?y["aria-labelledby"]="".concat(eu.replacementClass,"-title-").concat(f||ed()):(y["aria-hidden"]="true",y.focusable="false")),e8({icons:{main:te(_),mask:u?te(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:x,transform:i(i({},ec),r),symbol:a,title:h,maskId:c,titleId:f,extra:{attributes:y,styles:w,classes:g}})})}},tE=RegExp('"',"ug");function tD(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(r,o){if(null!==e.getAttribute(n))return r();var a=eh(e.children).filter(function(e){return e.getAttribute(F)===t})[0],s=D.getComputedStyle(e,t),u=s.getPropertyValue("font-family").match(J),l=s.getPropertyValue("font-weight"),c=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&"none"!==c&&""!==c){var d=s.getPropertyValue("content"),h=~["Sharp"].indexOf(u[2])?q:U,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?V[h][u[2].toLowerCase()]:X[h][l],f=(_=(k=w=d.replace(tE,"")).length,E=(S=k.charCodeAt(0))>=55296&&S<=56319&&_>1&&(x=k.charCodeAt(1))>=56320&&x<=57343?(S-55296)*1024+x-56320+65536:S,{value:(j=2===w.length&&w[0]===w[1])?eC(w[0]):eC(w),isSecondary:E>=1105920&&E<=1112319||j}),m=f.value,g=f.isSecondary,v=u[0].startsWith("FontAwesome"),y=eU(p,m),b=y;if(v){var w,k,x,_,S,E,j,O,T,A=(O=eI[m],T=eU("fas",m),O||(T?{prefix:"fas",iconName:T}:null)||{prefix:null,iconName:null});A.iconName&&A.prefix&&(y=A.iconName,p=A.prefix)}if(!y||g||a&&a.getAttribute(N)===p&&a.getAttribute(I)===b)r();else{e.setAttribute(n,b),a&&e.removeChild(a);var P={iconName:null,title:null,titleId:null,prefix:null,transform:ec,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},R=P.extra;R.attributes[F]=t,tn(y,p).then(function(o){var a=e8(i(i({},P),{},{icons:{main:o,mask:eH()},prefix:p,iconName:b,extra:R,watchable:!0})),s=C.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(s,e.firstChild):e.appendChild(s),s.outerHTML=a.map(function(e){return eS(e)}).join("\n"),e.removeAttribute(n),r()}).catch(o)}}else r()})}function tC(e){return Promise.all([tD(e,"::before"),tD(e,"::after")])}function tj(e){return e.parentNode!==document.head&&!~B.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(F)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function tO(e){if(T)return new Promise(function(t,n){var r=eh(e.querySelectorAll("*")).filter(tj).map(tC),i=ts.begin("searchPseudoElements");tm=!0,Promise.all(r).then(function(){i(),tm=!1,t()}).catch(function(){i(),tm=!1,n()})})}var tT=!1,tA=function(e){return e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(isNaN(i=parseFloat(i)))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},tP={x:0,y:0,width:"100%",height:"100%"};function tR(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}eZ=[{mixout:function(){return{dom:{css:ev,insertCss:eb}}},hooks:function(){return{beforeDOMElementCreation:function(){eb()},beforeI2svg:function(){eb()}}}},{mixout:function(){return{icon:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:e2(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:e2(r||{})),tS(n,i(i({},t),{},{mask:r}))}}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=tx,e.nodeCallback=t_,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?C:t,r=e.callback;return tx(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,o=t.prefix,a=t.transform,u=t.symbol,l=t.mask,c=t.maskId,d=t.extra;return new Promise(function(t,h){Promise.all([tn(n,o),l.iconName?tn(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(l){var h=s(l,2);t([e,e8({icons:{main:h[0],mask:h[1]},prefix:o,iconName:n,transform:a,symbol:u,maskId:c,title:r,titleId:i,extra:d,watchable:!0})])}).catch(h)})},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.transform,a=em(e.styles);return a.length>0&&(r.style=a),eg(o)&&(t=e1("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},{mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return e6({type:"layer"},function(){e0("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:"span",attributes:{class:["".concat(eu.cssPrefix,"-layers")].concat(u(r)).join(" ")},children:n}]})}}}},{mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,o=t.classes,a=void 0===o?[]:o,s=t.attributes,l=void 0===s?{}:s,c=t.styles,d=void 0===c?{}:c;return e6({type:"counter",content:e},function(){var n,o,s,c,h,p,f;return e0("beforeDOMElementCreation",{content:e,params:t}),o=(n={content:e.toString(),title:r,extra:{attributes:l,styles:d,classes:["".concat(eu.cssPrefix,"-layers-counter")].concat(u(a))}}).content,s=n.title,h=i(i(i({},(c=n.extra).attributes),s?{title:s}:{}),{},{class:c.classes.join(" ")}),(p=em(c.styles)).length>0&&(h.style=p),(f=[]).push({tag:"span",attributes:h,children:[o]}),s&&f.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),f})}}}},{mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?ec:n,o=t.title,a=void 0===o?null:o,s=t.classes,l=void 0===s?[]:s,c=t.attributes,d=void 0===c?{}:c,h=t.styles,p=void 0===h?{}:h;return e6({type:"text",content:e},function(){return e0("beforeDOMElementCreation",{content:e,params:t}),e9({content:e,transform:i(i({},ec),r),title:a,extra:{attributes:d,styles:p,classes:["".concat(eu.cssPrefix,"-layers-text")].concat(u(l))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,o=null,a=null;if(A){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();o=u.width/s,a=u.height/s}return eu.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,e9({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}},{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=tO,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?C:t;eu.searchPseudoElements&&tO(n)}}},{mixout:function(){return{dom:{unwatch:function(){tm=!0,tT=!0}}}},hooks:function(){return{bootstrap:function(){tv(eQ("mutationObserverCallbacks",{}))},noAuto:function(){tg&&tg.disconnect()},watch:function(e){var t=e.observeMutationsRoot;tT?tm=!1:tv(eQ("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return tA(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=tA(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,o=e.iconWidth,a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),l={transform:"".concat(a," ").concat(s," ").concat(u)},c={outer:{transform:"translate(".concat(r/2," 256)")},inner:l,path:{transform:"translate(".concat(-(o/2*1)," -256)")}};return{tag:"g",attributes:i({},c.outer),children:[{tag:"g",attributes:i({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:i(i({},t.icon.attributes),c.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?eG(n.split(" ").map(function(e){return e.trim()})):eH();return r.prefix||(r.prefix=eR),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n,r,o,a,s,u,l,c=e.children,d=e.attributes,h=e.main,p=e.mask,f=e.maskId,m=e.transform,g=h.width,v=h.icon,y=p.width,b=p.icon,w=(n=(t={transform:m,containerWidth:y,iconWidth:g}).transform,r=t.containerWidth,o=t.iconWidth,a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),l={transform:"".concat(a," ").concat(s," ").concat(u)},{outer:{transform:"translate(".concat(r/2," 256)")},inner:l,path:{transform:"translate(".concat(-(o/2*1)," -256)")}}),k={tag:"rect",attributes:i(i({},tP),{},{fill:"white"})},x=v.children?{children:v.children.map(tR)}:{},_={tag:"g",attributes:i({},w.inner),children:[tR(i({tag:v.tag,attributes:i(i({},v.attributes),w.path)},x))]},S={tag:"g",attributes:i({},w.outer),children:[_]},E="mask-".concat(f||ed()),D="clip-".concat(f||ed()),C={tag:"mask",attributes:i(i({},tP),{},{id:E,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[k,S]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:D},children:"g"===b.tag?b.children:[b]},C]};return c.push(j,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(D,")"),mask:"url(#".concat(E,")")},tP)}),{children:c,attributes:d}}}},{provides:function(e){var t=!1;D.matchMedia&&(t=D.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:i(i({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=i(i({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:i(i({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:i(i({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:i(i({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:i(i({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:i(i({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:i(i({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:i(i({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol");return e.symbol=null!==n&&(""===n||n),e}}}}],eK={},Object.keys(eJ).forEach(function(e){-1===eX.indexOf(e)&&delete eJ[e]}),eZ.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){"function"==typeof t[e]&&(e5[e]=t[e]),"object"===o(t[e])&&Object.keys(t[e]).forEach(function(n){e5[e]||(e5[e]={}),e5[e][n]=t[e][n]})}),e.hooks){var n=e.hooks();Object.keys(n).forEach(function(e){eK[e]||(eK[e]=[]),eK[e].push(n[e])})}e.provides&&e.provides(eJ)}),e5.noAuto;var tM=e5.config;e5.library,e5.dom;var tF=e5.parse;e5.findIconDefinition,e5.toHtml;var tN=e5.icon;e5.layer,e5.text,e5.counter},857:function(e,t,n){"use strict";n.d(t,{JR:function(){return a},SF:function(){return u}});var r=n(69180);let i=e=>Error(e),o=()=>{throw i("Unexpected case")},a=(e,t,n)=>{if(0===e)return r.w$(t,0);let i=null===t._first?null:t._first.content.type;for(;null!==i&&t!==i;){if(i instanceof r.eI){if(i._length>=e)return r.w$(i,e);if(e-=i._length,null!==i._item&&null!==i._item.next)i=i._item.next.content.type;else{do i=null===i._item?null:i._item.parent,e--;while(i!==t&&null!==i&&null!==i._item&&null===i._item.next);null!==i&&i!==t&&(i=null===i._item?null:i._item.next.content.type)}}else{let o=(n.get(i)||{nodeSize:0}).nodeSize;if(null!==i._first&&e1)return new r.Zi(null===i._item?null:i._item.id,null===i._item?r.BW(i):null,null);if(e-=o,null!==i._item&&null!==i._item.next)i=i._item.next.content.type;else{if(0===e)return i=null===i._item?i:i._item.parent,new r.Zi(null===i._item?null:i._item.id,null===i._item?r.BW(i):null,null);do i=i._item.parent,e--;while(i!==t&&null===i._item.next);i!==t&&(i=i._item.next.content.type)}}}if(null===i)throw o();if(0===e&&i.constructor!==r.eI&&i!==t)return s(i._item.parent,i._item)}return r.w$(t,t._length)},s=(e,t)=>{let n=null,i=null;return null===e._item?i=r.BW(e):n=r.at(e._item.id.client,e._item.id.clock),new r.Zi(n,i,t.id)},u=(e,t,n,i)=>{let o=r.or(n,e);if(null===o||o.type!==t&&!r.$4(t,o.type._item))return null;let a=o.type,s=0;if(a.constructor===r.eI)s=o.index;else if(null===a._item||!a._item.deleted){let e=a._first,t=0;for(;t{let t=r.Gk.getState(e).undoManager;if(null!=t)return t.undo(),!0}},87254:function(e,t,n){"use strict";n.d(t,{ag:function(){return E}});var r=n(62770);let i=e=>"string"==typeof e,o=e=>"function"==typeof e,a=new Map;function s(e){return[...Array.isArray(e)?e:[e],"en"]}function u(e,t,n){let r=s(e);return d(()=>h("date",r,n),()=>new Intl.DateTimeFormat(r,n)).format(i(t)?new Date(t):t)}function l(e,t,n){let r=s(e);return d(()=>h("number",r,n),()=>new Intl.NumberFormat(r,n)).format(t)}function c(e,t,n,{offset:r=0,...i}){let o=s(e),a=t?d(()=>h("plural-ordinal",o),()=>new Intl.PluralRules(o,{type:"ordinal"})):d(()=>h("plural-cardinal",o),()=>new Intl.PluralRules(o,{type:"cardinal"}));return i[n]??i[a.select(n-r)]??i.other}function d(e,t){let n=e(),r=a.get(n);return r||(r=t(),a.set(n,r)),r}function h(e,t,n){let r=t.join("-");return`${e}-${r}-${JSON.stringify(n)}`}let p=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/g,f=(e,t,n={})=>{let r=t||e,i=e=>"object"==typeof e?e:n[e]||{style:e},o=(e,t)=>{let o=l(r,e,Object.keys(n).length?i("number"):void 0);return t.replace("#",o)};return{plural:(e,t)=>{let{offset:n=0}=t,i=c(r,!1,e,t);return o(e-n,i)},selectordinal:(e,t)=>{let{offset:n=0}=t,i=c(r,!0,e,t);return o(e-n,i)},select:m,number:(e,t)=>l(r,e,i(t)),date:(e,t)=>u(r,e,i(t)),undefined:g}},m=(e,t)=>t[e]??t.other,g=e=>e;var v=Object.defineProperty,y=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t,n)=>(y(e,"symbol"!=typeof t?t+"":t,n),n);class w{constructor(){b(this,"_events",{})}on(e,t){var n;return(n=this._events)[e]??(n[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){let n=this._getListeners(e);if(!n)return;let r=n.indexOf(t);~r&&n.splice(r,1)}emit(e,...t){let n=this._getListeners(e);n&&n.map(e=>e.apply(this,t))}_getListeners(e){let t=this._events[e];return!!Array.isArray(t)&&t}}var k=Object.defineProperty,x=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t,n)=>(x(e,"symbol"!=typeof t?t+"":t,n),n);class S extends w{constructor(e){super(),_(this,"_locale",""),_(this,"_locales"),_(this,"_localeData",{}),_(this,"_messages",{}),_(this,"_missing"),_(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??"en",e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){let n=this._localeData[e];n?Object.assign(n,t):this._localeData[e]=t}loadLocaleData(e,t){null!=t?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,t){let n=this._messages[e];n?Object.assign(n,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach(([e,t])=>this._load(e,t)),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:n}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=n,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,n){var a,s;let u=n?.message;i(e)||(t=e.values||t,u=e.message,e=e.id);let l=this.messages[e],c=void 0===l,d=this._missing;if(d&&c)return o(d)?d(this._locale,e):d;c&&this.emit("missing",{id:e,locale:this._locale});let h=l||u||e;return i(h)&&p.test(h)?JSON.parse(`"${h}"`):i(h)?h:(a=this._locale,s=this._locales,(e={},t)=>{let n=f(a,s,t),o=t=>Array.isArray(t)?t.reduce((t,r)=>{if(i(r))return t+r;let[a,s,u]=r,l={};null!=u&&"object"==typeof u?Object.entries(u).forEach(([e,t])=>{l[e]=o(t)}):l=u;let c=(0,n[s])(e[a],l);return null==c?t:t+c},""):t,u=o(h);return i(u)&&p.test(u)?r(u.trim()):i(u)?u.trim():u?String(u):""})(t,n?.formats)}date(e,t){return u(this._locales||this._locale,e,t)}number(e,t){return l(this._locales||this._locale,e,t)}}let E=function(e={}){return new S(e)}()},5879:function(e,t,n){"use strict";n.d(t,{bd:function(){return h},cC:function(){return p},mV:function(){return d}});var r=n(2784);let i=/<([a-zA-Z0-9]+)>(.*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,o=/(?:\r\n|\r|\n)/g,a={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},s=(e=0,t="")=>()=>`${t}_${e++}`;function u(e){let{render:t,component:n,id:u,message:c,formats:d,lingui:{i18n:h,defaultComponent:p}}=e,f={...e.values},m={...e.components};f&&Object.keys(f).forEach(e=>{let t=f[e];if(!(r.isValidElement(t)||Array.isArray(t)&&t.every(r.isValidElement)))return;let n=Object.keys(m).length;m[n]=t,f[e]=`<${n}/>`});let g=h&&"function"==typeof h._?h._(u,f,{message:c,formats:d}):u,v=g?function e(t,n={}){let u=s(0,"$lingui$"),l=t.replace(o,"").split(i);if(1===l.length)return t;let c=[],d=l.shift();for(let[t,i,o]of(d&&c.push(d),function e(t){if(!t.length)return[];let[n,r,i,o]=t.slice(0,4);return[[n||i,r||"",o]].concat(e(t.slice(4,t.length)))}(l))){let s=void 0!==t?n[t]:void 0;(!s||a[s.type]&&i)&&(s?console.error(`${s.type} is a void element tag therefore it must have no children`):console.error(`Can't use element at index '${t}' as it is not declared in the original translation`),s=r.createElement(r.Fragment)),Array.isArray(s)&&(s=r.createElement(r.Fragment,{},s)),c.push(r.cloneElement(s,{key:u()},i?e(i,n):s.props.children)),o&&c.push(o)}return c}(g,m):null;if(null===t||null===n)return v;let y=p||l,b={id:u,message:c,translation:v,isTranslated:u!==v&&c!==v,children:v};if(t&&n)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(t&&"function"!=typeof t)console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${t}`);else if(n&&"function"!=typeof n)return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${n}`),r.createElement(y,b,v);if("function"==typeof t)return t(b);let w=n||y;return r.createElement(w,b,v)}let l=({children:e})=>r.createElement(r.Fragment,null,e),c=r.createContext(null);function d(){return r.useContext(c)}let h=({i18n:e,defaultComponent:t,children:n})=>{let i=r.useRef(e.locale),o=r.useCallback(()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)}),[e,t]),[a,s]=r.useState(o());return(r.useEffect(()=>{let t=()=>{i.current=e.locale,s(o())},n=e.on("change",t);return i.current!==e.locale&&t(),n},[e,o]),i.current)?r.createElement(c.Provider,{value:a},n):null};function p(e){let t=d();return r.createElement(u,{...e,lingui:t})}},17831:function(e,t,n){"use strict";n.d(t,{v4:function(){return a}});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],6==t?n+=o[15&e|64]:8==t?n+=o[63&e|128]:n+=o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},54333:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(34406);function i(e,t,...n){if(void 0!==r&&void 0===t)throw Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;(e=Error(t.replace(/%s/g,function(){return n[r++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}},72057:function(e,t,n){"use strict";function r(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;let o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;let s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a!1,currentStep:0,setCurrentStep:()=>0,steps:[],setSteps:()=>[],setMeta:()=>"",disabledActions:!1,setDisabledActions:()=>!1,components:{}});function o(){return(0,r.useContext)(i)}},43866:function(e,t,n){"use strict";n.d(t,{E6:function(){return u},Th:function(){return Q},zo:function(){return et}});var r,i=n(2784),o="colors",a="sizes",s="space",u={gap:s,gridGap:s,columnGap:s,gridColumnGap:s,rowGap:s,gridRowGap:s,inset:s,insetBlock:s,insetBlockEnd:s,insetBlockStart:s,insetInline:s,insetInlineEnd:s,insetInlineStart:s,margin:s,marginTop:s,marginRight:s,marginBottom:s,marginLeft:s,marginBlock:s,marginBlockEnd:s,marginBlockStart:s,marginInline:s,marginInlineEnd:s,marginInlineStart:s,padding:s,paddingTop:s,paddingRight:s,paddingBottom:s,paddingLeft:s,paddingBlock:s,paddingBlockEnd:s,paddingBlockStart:s,paddingInline:s,paddingInlineEnd:s,paddingInlineStart:s,top:s,right:s,bottom:s,left:s,scrollMargin:s,scrollMarginTop:s,scrollMarginRight:s,scrollMarginBottom:s,scrollMarginLeft:s,scrollMarginX:s,scrollMarginY:s,scrollMarginBlock:s,scrollMarginBlockEnd:s,scrollMarginBlockStart:s,scrollMarginInline:s,scrollMarginInlineEnd:s,scrollMarginInlineStart:s,scrollPadding:s,scrollPaddingTop:s,scrollPaddingRight:s,scrollPaddingBottom:s,scrollPaddingLeft:s,scrollPaddingX:s,scrollPaddingY:s,scrollPaddingBlock:s,scrollPaddingBlockEnd:s,scrollPaddingBlockStart:s,scrollPaddingInline:s,scrollPaddingInlineEnd:s,scrollPaddingInlineStart:s,fontSize:"fontSizes",background:o,backgroundColor:o,backgroundImage:o,borderImage:o,border:o,borderBlock:o,borderBlockEnd:o,borderBlockStart:o,borderBottom:o,borderBottomColor:o,borderColor:o,borderInline:o,borderInlineEnd:o,borderInlineStart:o,borderLeft:o,borderLeftColor:o,borderRight:o,borderRightColor:o,borderTop:o,borderTopColor:o,caretColor:o,color:o,columnRuleColor:o,fill:o,outline:o,outlineColor:o,stroke:o,textDecorationColor:o,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:a,minBlockSize:a,maxBlockSize:a,inlineSize:a,minInlineSize:a,maxInlineSize:a,width:a,minWidth:a,maxWidth:a,height:a,minHeight:a,maxHeight:a,flexBasis:a,gridTemplateColumns:a,gridTemplateRows:a,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},l=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,c=()=>{let e=Object.create(null);return(t,n,...r)=>{let i=JSON.stringify(t,l);return i in e?e[i]:e[i]=n(t,...r)}},d=Symbol.for("sxs.internal"),h=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),p=e=>{for(let t in e)return!0;return!1},{hasOwnProperty:f}=Object.prototype,m=e=>e.includes("-")?e:e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),g=/\s+(?![^()]*\))/,v=e=>t=>e(..."string"==typeof t?String(t).split(g):[t]),y={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:v((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e})),marginInline:v((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e})),maxSize:v((e,t)=>({maxBlockSize:e,maxInlineSize:t||e})),minSize:v((e,t)=>({minBlockSize:e,minInlineSize:t||e})),paddingBlock:v((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e})),paddingInline:v((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e}))},b=/([\d.]+)([^]*)/,w=(e,t)=>e.length?e.reduce((e,n)=>(e.push(...t.map(e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e)),e),[]):t,k=(e,t)=>e in x&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,(t,n,r,i)=>n+("stretch"===r?`-moz-available${i};${m(e)}:${n}-webkit-fill-available`:`-moz-fit-content${i};${m(e)}:${n}fit-content`)+i):String(t),x={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},_=e=>e?e+"-":"",S=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,(e,r,i,o,a)=>"$"==o==!!i?e:(r||"--"==o?"calc(":"")+"var(--"+("$"===o?_(t)+(a.includes("$")?"":_(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==o?"*"+(r||"")+(i||"1")+")":"")),E=/\s*,\s*(?![^()]*\))/,D=Object.prototype.toString,C=(e,t,n,r,i)=>{let o,a,s;let u=(e,t,n)=>{let l,c;let d=e=>{var h;for(l in e){let p=64===l.charCodeAt(0);for(c of p&&Array.isArray(e[l])?e[l]:[e[l]]){let e=/[A-Z]/.test(h=l)?h:h.replace(/-[^]/g,e=>e[1].toUpperCase()),f="object"==typeof c&&c&&c.toString===D&&(!r.utils[e]||!t.length);if(e in r.utils&&!f){let t=r.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in y){let t=y[e];if(t!==s){s=t,d(t(c)),s=null;continue}}if(p&&(l=(l.slice(1) in r.media?"@media "+r.media[l.slice(1)]:l).replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,(e,t,n,r,i,o)=>{let a=b.test(t),s=.0625*(a?-1:1),[u,l]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+u+":"+("="!==n[0]&&1===n.length?l.replace(b,(e,t,r)=>Number(t)+s*(">"===n?1:-1)+r):l)+(i?") and ("+(">"===i[0]?"min-":"max-")+u+":"+(1===i.length?o.replace(b,(e,t,n)=>Number(t)+s*(">"===i?-1:1)+n):o):"")+")"})),f){let e=p?n.concat(l):[...n],r=p?[...t]:w(t,l.split(E));void 0!==o&&i(j(...o)),o=void 0,u(c,r,e)}else void 0===o&&(o=[[],t,n]),l=p||36!==l.charCodeAt(0)?l:`--${_(r.prefix)}${l.slice(1).replace(/\$/g,"-")}`,c=f?c:"number"==typeof c?c&&e in O?String(c)+"px":String(c):S(k(e,null==c?"":c),r.prefix,r.themeMap[e]),o[0].push(`${p?`${l} `:`${m(l)}:`}${c}`)}}};d(e),void 0!==o&&i(j(...o)),o=void 0};u(e,t,n)},j=(e,t,n)=>`${n.map(e=>`${e}{`).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,O={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},T=e=>String.fromCharCode(e+(e>25?39:97)),A=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return T(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),P=["themed","global","styled","onevar","resonevar","allvar","inline"],R=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},M=e=>{let t;let n=()=>{let{cssRules:e}=t.sheet;return[].map.call(e,(n,r)=>{let{cssText:i}=n,o="";if(i.startsWith("--sxs"))return"";if(e[r-1]&&(o=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(let e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return n.cssRules.length?`${o}${i}`:""}return i}).join("")},r=()=>{if(t){let{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(let t in e)delete e[t]}for(let i of Object(e).styleSheets||[])if(R(i)){for(let e=0,o=i.cssRules;o[e];++e){let a=Object(o[e]);if(1!==a.type)continue;let s=Object(o[e+1]);if(4!==s.type)continue;++e;let{cssText:u}=a;if(!u.startsWith("--sxs"))continue;let l=u.slice(14,-3).trim().split(/\s+/),c=P[l[0]];c&&(t||(t={sheet:i,reset:r,rules:{},toString:n}),t.rules[c]={group:s,index:e,cache:new Set(l)})}if(t)break}if(!t){let i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,e=>e.cssText).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:r,toString:n}}let{sheet:i,rules:o}=t;for(let e=P.length-1;e>=0;--e){let t=P[e];if(!o[t]){let n=P[e+1],r=o[n]?o[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),o[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}F(o[t])}};return r(),t},F=e=>{let t=e.group,n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},N=Symbol(),I=c(),L=(e,t)=>I(e,()=>(...n)=>{let r={type:null,composers:new Set};for(let t of n)if(null!=t){if(t[d])for(let e of(null==r.type&&(r.type=t[d].type),t[d].composers))r.composers.add(e);else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(B(t,e))}return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),z(e,r,t)}),B=({variants:e,compoundVariants:t,defaultVariants:n,...r},i)=>{let o=`${_(i.prefix)}c-${A(r)}`,a=[],s=[],u=Object.create(null),l=[];for(let e in n)u[e]=String(n[e]);if("object"==typeof e&&e)for(let t in e){f.call(u,t)||(u[t]="undefined");let n=e[t];for(let e in n){let r={[t]:String(e)};"undefined"===String(e)&&l.push(t);let i=n[e],o=[r,i,!p(i)];a.push(o)}}if("object"==typeof t&&t)for(let e of t){let{css:t,...n}=e;for(let e in t="object"==typeof t&&t||{},n)n[e]=String(n[e]);let r=[n,t,!p(t)];s.push(r)}return[o,r,a,s,u,l]},z=(e,t,n)=>{let[r,i,o,a]=U(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;nt.rules[e]={apply:n=>t[N].push([e,n])}),t})(n):null,u=(s||n).rules,l=`.${r}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=c=>{let{css:d,...h}=c="object"==typeof c&&c||$,p={};for(let e in o)if(delete h[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":o[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:o[e])}else p[e]=o[e];let f=new Set([...i]);for(let[r,i,o,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),C(i,[`.${r}`],[],e,e=>{u.styled.apply(e)}));let t=q(o,p,e.media),s=q(a,p,e.media,!0);for(let i of t)if(void 0!==i)for(let[t,o,a]of i){let i=`${r}-${A(o)}-${t}`;f.add(i);let s=(a?n.rules.resonevar:n.rules.onevar).cache,l=a?u.resonevar:u.onevar;s.has(i)||(s.add(i),C(o,[`.${i}`],[],e,e=>{l.apply(e)}))}for(let t of s)if(void 0!==t)for(let[i,o]of t){let t=`${r}-${A(o)}-${i}`;f.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),C(o,[`.${t}`],[],e,e=>{u.allvar.apply(e)}))}}if("object"==typeof d&&d){let t=`${r}-i${A(d)}-css`;f.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),C(d,[`.${t}`],[],e,e=>{u.inline.apply(e)}))}for(let e of String(c.className||"").trim().split(/\s+/))e&&f.add(e);let m=h.className=[...f].join(" ");return{type:t.type,className:m,selector:l,props:h,toString:()=>m,deferredInjector:s}};return h(c,{className:r,selector:l,[d]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},U=e=>{let t="",n=[],r={},i=[];for(let[o,,,,a,s]of e)for(let e in""===t&&(t=o),n.push(o),i.push(...s),a){let t=a[e];(void 0===r[e]||"undefined"!==t||s.includes(t))&&(r[e]=t)}return[t,n,r,new Set(i)]},q=(e,t,n,r)=>{let i=[];i:for(let[o,a,s]of e){if(s)continue;let e,u=0,l=!1;for(e in o){let r=o[e],i=t[e];if(i!==r){if("object"!=typeof i||!i)continue i;{let e,t,o=0;for(let a in i){if(r===String(i[a])){if("@initial"!==a){let e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),l=!0}u+=o,e=!0}++o}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue i}}}(i[u]=i[u]||[]).push([r?"cv":`${e}-${o[e]}`,a,l])}return i},$={},H=c(),W=(e,t)=>H(e,()=>(...n)=>{let r=()=>{for(let r of n){let n=A(r="object"==typeof r&&r||{});if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}C(r,[],[],e,e=>{t.rules.global.apply(e)})}}return""};return h(r,{toString:r})}),V=c(),G=(e,t)=>V(e,()=>n=>{let r=`${_(e.prefix)}k-${A(n)}`,i=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);let i=[];C(n,[],[],e,e=>i.push(e));let o=`@keyframes ${r}{${i.join("")}}`;t.rules.global.apply(o)}return r};return h(i,{get name(){return i()},toString:i})}),Y=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+_(this.prefix)+_(this.scale)+this.token}toString(){return this.computedValue}},Z=c(),K=(e,t)=>Z(e,()=>(n,r)=>{r="object"==typeof n&&n||Object(r);let i=`.${n=(n="string"==typeof n?n:"")||`${_(e.prefix)}t-${A(r)}`}`,o={},a=[];for(let t in r)for(let n in o[t]={},r[t]){let i=`--${_(e.prefix)}${t}-${n}`,s=S(String(r[t][n]),e.prefix,t);o[t][n]=new Y(n,s,t,e.prefix),a.push(`${i}:${s}`)}let s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);let i=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(i)}return n};return{...o,get className(){return s()},selector:i,toString:s}}),J=c(),X=c(),Q=e=>{let t=(e=>{let t=!1,n=J(e,e=>{t=!0;let n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...u},utils:"object"==typeof e.utils&&e.utils||{}},s=M(i),l={css:L(a,s),globalCss:W(a,s),keyframes:G(a,s),createTheme:K(a,s),reset(){s.reset(),l.theme.toString()},theme:{},sheet:s,config:a,prefix:n,getCssText:s.toString,toString:s.toString};return String(l.theme=l.createTheme(o)),l});return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>X(e,()=>{let n=L(e,t);return(...e)=>{let t=n(...e),r=t[d].type,o=i.forwardRef((e,n)=>{let o=e&&e.as||r,{props:a,deferredInjector:s}=t(e);return delete a.as,a.ref=n,s?i.createElement(i.Fragment,null,i.createElement(o,a),i.createElement(s,null)):i.createElement(o,a)});return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[d]=t[d],o}}))(t),t},ee=()=>r||(r=Q()),et=(...e)=>ee().styled(...e)},73235:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{_:function(){return r}})},79609:function(e,t,n){"use strict";n.d(t,{V6:function(){return o},ZP:function(){return o}});var r=n(37243);let i=/^\s*>\s$/,o=r.NB.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:e}){return["blockquote",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,r.S0)({find:i,type:this.type})]}})},86900:function(e,t,n){"use strict";n.d(t,{ZP:function(){return u},d8:function(){return u}});var r=n(37243);let i=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,o=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,a=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,s=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,u=r.vc.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type}),(0,r.Cf)({find:a,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type}),(0,r.K9)({find:s,type:this.type})]}})},25059:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s},dn:function(){return s}});var r=n(37243),i=n(27191);let o=/^```([a-z]+)?[\s\n]$/,a=/^~~~([a-z]+)?[\s\n]$/,s=r.NB.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:e=>{var t;let{languageClassPrefix:n}=this.options;return[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(e=>e.startsWith(n)).map(e=>e.replace(n,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:e,HTMLAttributes:t}){return["pre",(0,r.P1)(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!!e&&t.parent.type.name===this.name&&(!!n||!t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let o=r.parentOffset===r.parent.nodeSize-2,a=r.parent.textContent.endsWith("\n\n");return!!o&&!!a&&e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let a=i.after();return!(void 0===a||r.nodeAt(a))&&e.commands.exitCode()}}},addInputRules(){return[(0,r.zK)({find:o,type:this.type,getAttributes:e=>({language:e[1]})}),(0,r.zK)({find:a,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new i.Sy({key:new i.H$("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,a=null==o?void 0:o.mode;if(!n||!a)return!1;let{tr:s}=e.state;return e.state.selection.from===e.state.doc.nodeSize-(1+2*e.state.selection.$to.depth)?s.insert(e.state.selection.from-1,this.type.create({language:a})):s.replaceSelectionWith(this.type.create({language:a})),s.setSelection(i.Bs.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(n.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}})},31187:function(e,t,n){"use strict";n.d(t,{EK:function(){return a},ZP:function(){return a}});var r=n(37243);let i=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/,o=/(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g,a=r.vc.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:e}){return["code",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type})]}})},42626:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});let r=n(37243).NB.create({name:"doc",topNode:!0,content:"block+"})},36518:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(37243),i=n(3027);let o=r.hj.create({name:"gapCursor",addProseMirrorPlugins:()=>[(0,i.d)()],extendNodeSchema(e){var t;let n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!==(t=(0,r.nU)((0,r.Nl)(e,"allowGapCursor",n)))&&void 0!==t?t:null}}})},39949:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(37243);let i=r.NB.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",(0,r.P1)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:o}=this.options,{splittableMarks:a}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&o){let t=s.filter(e=>a.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}})},71391:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=n(37243);let i=r.NB.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){let n=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return[`h${n}`,(0,r.P1)(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.setNode(this.name,e),toggleHeading:e=>({commands:t})=>!!this.options.levels.includes(e.level)&&t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,r.zK)({find:RegExp(`^(#{1,${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}})},6776:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(37243);let i=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,o=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,a=r.vc.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:e}){return["mark",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type})]}})},86509:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(37243),i=function(){};i.prototype.append=function(e){return e.length?(e=i.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},i.prototype.prepend=function(e){return e.length?i.from(e).append(this):this},i.prototype.appendInner=function(e){return new a(this,e)},i.prototype.slice=function(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t)?i.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},i.prototype.get=function(e){if(!(e<0)&&!(e>=this.length))return this.getInner(e)},i.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},i.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},i.from=function(e){return e instanceof i?e:e&&e.length?new o(e):i.empty};var o=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(i);i.empty=new o([]);var a=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return ei&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)||n=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(i),s=n(26151),u=n(27191);class l{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){let n,r,i,o;if(0==this.eventCount)return null;let a=this.items.length;for(;;a--)if(this.items.get(a-1).selection){--a;break}t&&(r=(n=this.remapping(a,this.items.length)).maps.length);let s=e.tr,u=[],d=[];return this.items.forEach((e,t)=>{if(!e.step){n||(r=(n=this.remapping(a,t+1)).maps.length),r--,d.push(e);return}if(n){d.push(new c(e.map));let t=e.step.map(n.slice(r)),i;t&&s.maybeStep(t).doc&&(i=s.mapping.maps[s.mapping.maps.length-1],u.push(new c(i,void 0,void 0,u.length+d.length))),r--,i&&n.appendMap(i,r)}else s.maybeStep(e.step);if(e.selection)return i=n?e.selection.map(n.slice(r)):e.selection,o=new l(this.items.slice(0,a).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:o,transform:s,selection:i}}addTransform(e,t,n,r){var i,o;let a,s=[],u=this.eventCount,d=this.items,p=!r&&d.length?d.get(d.length-1):null;for(let n=0;nh&&(i=d,o=f,i.forEach((e,t)=>{if(e.selection&&0==o--)return a=t,!1}),d=i.slice(a),u-=f),new l(d.append(s),u)}remapping(e,t){let n=new s.vs;return this.items.forEach((t,r)=>{let i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(e){return 0==this.eventCount?this:new l(this.items.append(e.map(e=>new c(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(e=>{e.selection&&a--},r);let s=t;this.items.forEach(t=>{let r=i.getMirror(--s);if(null==r)return;o=Math.min(o,r);let u=i.maps[r];if(t.step){let o=e.steps[r].invert(e.docs[r]),l=t.selection&&t.selection.map(i.slice(s+1,r));l&&a++,n.push(new c(u,o,l))}else n.push(new c(u))},r);let u=[];for(let e=t;e500&&(d=d.compress(this.items.length-n.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{!t.step&&e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&o++;let u=new c(a.invert(),e,s),l,d=r.length-1;(l=r.length&&r[d].merge(u))?r[d]=l:r.push(u)}}else i.map&&n--},this.items.length,0),new l(i.from(r.reverse()),o)}}l.empty=new l(i.empty,0);class c{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new c(t.getMap().invert(),t,this.selection)}}}class d{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}}let h=20;function p(e){let t=[];return e.forEach((e,n,r,i)=>t.push(r,i)),t}function f(e,t){if(!e)return null;let n=[];for(let r=0;r{let i=y.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(r){let o=function(e,t,n){let r=v(t),i=y.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,r);if(!o)return null;let a=o.selection.resolve(o.transform.doc),s=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,r),u=new d(n?s:o.remaining,n?o.remaining:s,null,0,-1);return o.transform.setSelection(a).setMeta(y,{redo:n,historyState:u})}(i,n,e);o&&r(t?o.scrollIntoView():o)}return!0}}let k=w(!1,!0),x=w(!0,!0);w(!1,!1),w(!0,!1);let _=r.hj.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>k(e,t),redo:()=>({state:e,dispatch:t})=>x(e,t)}),addProseMirrorPlugins(){return[function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new u.Sy({key:y,state:{init:()=>new d(l.empty,l.empty,null,0,-1),apply:(t,n,r)=>(function(e,t,n,r){let i=n.getMeta(y),o;if(i)return i.historyState;n.getMeta(b)&&(e=new d(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(y))return a.getMeta(y).redo?new d(e.done.addTransform(n,void 0,r,v(t)),e.undone,p(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new d(e.done,e.undone.addTransform(n,void 0,r,v(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new d(e.done.rebased(n,o),e.undone.rebased(n,o),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new d(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),f(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let i=n.getMeta("composition"),o=0==e.prevTime||!a&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i=t[i]&&(n=!0)}),n}(n,e.prevRanges)),s=a?f(e.prevRanges,n.mapping):p(n.mapping.maps[n.steps.length-1]);return new d(e.done.addTransform(n,o?t.selection.getBookmark():void 0,r,v(t)),l.empty,s,n.time,null==i?e.prevComposition:i)}})(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?k:"historyRedo"==n?x:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})},24424:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(37243);let i=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,o=r.NB.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:e}){return["img",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setImage:e=>({commands:t})=>t.insertContent({type:this.name,attrs:e})}},addInputRules(){return[(0,r.x2)({find:i,type:this.type,getAttributes:e=>{let[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}})},9432:function(e,t,n){"use strict";n.d(t,{Tx:function(){return u},ZP:function(){return u}});var r=n(37243);let i=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,o=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,a=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,s=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,u=r.vc.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type}),(0,r.Cf)({find:a,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type}),(0,r.K9)({find:s,type:this.type})]}})},70675:function(e,t,n){"use strict";n.d(t,{ZP:function(){return eO}});var r=n(37243);let i=(e,t)=>{for(let n in t)e[n]=t[n];return e},o="numeric",a="ascii",s="alpha",u="asciinumeric",l="alphanumeric",c="domain",d="emoji",h="whitespace";function p(e,t,n){for(let r in t[o]&&(t[u]=!0,t[l]=!0),t[a]&&(t[u]=!0,t[s]=!0),t[u]&&(t[l]=!0),t[s]&&(t[l]=!0),t[l]&&(t[c]=!0),t[d]&&(t[c]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function f(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}f.groups={},f.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t=0&&(n[r]=!0);return n}(o.t,r),n),r):n&&p(t,n,r)),o.t=t),this.j[e]=o,o}};let m=(e,t,n,r,i)=>e.ta(t,n,r,i),g=(e,t,n,r,i)=>e.tr(t,n,r,i),v=(e,t,n,r,i)=>e.ts(t,n,r,i),y=(e,t,n,r,i)=>e.tt(t,n,r,i),b="WORD",w="UWORD",k="LOCALHOST",x="UTLD",_="SCHEME",S="SLASH_SCHEME",E="OPENBRACE",D="OPENBRACKET",C="OPENANGLEBRACKET",j="OPENPAREN",O="CLOSEBRACE",T="CLOSEBRACKET",A="CLOSEANGLEBRACKET",P="CLOSEPAREN",R="AMPERSAND",M="APOSTROPHE",F="ASTERISK",N="BACKSLASH",I="BACKTICK",L="CARET",B="COLON",z="COMMA",U="DOLLAR",q="EQUALS",$="EXCLAMATION",H="HYPHEN",W="PERCENT",V="PIPE",G="PLUS",Y="POUND",Z="QUERY",K="QUOTE",J="SEMI",X="SLASH",Q="TILDE",ee="UNDERSCORE",et="EMOJI";var en=Object.freeze({__proto__:null,WORD:b,UWORD:w,LOCALHOST:k,TLD:"TLD",UTLD:x,SCHEME:_,SLASH_SCHEME:S,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:E,OPENBRACKET:D,OPENANGLEBRACKET:C,OPENPAREN:j,CLOSEBRACE:O,CLOSEBRACKET:T,CLOSEANGLEBRACKET:A,CLOSEPAREN:P,AMPERSAND:R,APOSTROPHE:M,ASTERISK:F,AT:"AT",BACKSLASH:N,BACKTICK:I,CARET:L,COLON:B,COMMA:z,DOLLAR:U,DOT:"DOT",EQUALS:q,EXCLAMATION:$,HYPHEN:H,PERCENT:W,PIPE:V,PLUS:G,POUND:Y,QUERY:Z,QUOTE:K,SEMI:J,SLASH:X,TILDE:Q,UNDERSCORE:ee,EMOJI:et,SYM:"SYM"});let er=/[a-z]/,ei=/\p{L}/u,eo=/\p{Emoji}/u,ea=/\d/,es=/\s/,eu=null,el=null;function ec(e,t,n,r,i){let o;let a=t.length;for(let n=0;n=0;)i++;if(i>0){t.push(n.join(""));let o=parseInt(e.substring(r,r+i),10);for(;o>0;o--)n.pop();r+=i}else"_"===e[r]?t.push(n.join("")):n.push(e[r]),r++}return t}let eh={defaultProtocol:"http",events:null,format:ef,formatHref:ef,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ep(e,t){void 0===t&&(t=null);let n=i({},eh);e&&(n=i(n,e instanceof ep?e.o:e));let r=n.ignoreTags,o=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:eh[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},em.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=eh.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toFormattedHref(e),n=e.get("tagName",t,this),r=this.toFormattedString(e),o={},a=e.get("className",t,this),s=e.get("target",t,this),u=e.get("rel",t,this),l=e.getObj("attributes",t,this),c=e.getObj("events",t,this);return o.href=t,a&&(o.class=a),s&&(o.target=s),u&&(o.rel=u),l&&i(o,l),{tagName:n,attributes:o,content:r,eventListeners:c}}};let ev=eg("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ey=eg("text"),eb=eg("nl"),ew=eg("url",{isLink:!0,toHref(e){return void 0===e&&(e=eh.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==k&&e[1].t===B}}),ek=e=>new f(e);function ex(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}let e_="undefined"!=typeof console&&console&&console.warn||(()=>{}),eS={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eE(e,t){if(void 0===t&&(t=!1),eS.initialized&&e_(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat');eS.customSchemes.push([e,t])}function eD(e){return eS.initialized||function(){eS.scanner=function(e){void 0===e&&(e=[]);let t={};f.groups=t;let n=new f;null==eu&&(eu=ed("aaa1rp3barth4b_ott3vie4c1le2ogado5udhabi7c_ademy5centure6ountant_s9o1tor4d_s1ult4e_g1ro2tna4f_l1rica5g_akhan5ency5i_g1rbus3force5tel5kdn3l_faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m_azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o_l2partments8p_le4q_uarelle8r_ab1mco4chi3my2pa2t_e3s_da2ia2sociates9t_hleta5torney7u_ction5di_ble3o3spost5thor3o_s4vianca6w_s2x_a2z_ure5ba_by2idu3namex3narepublic11d1k2r_celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b_c1t1va3cg1n2d1e_ats2uty4er2ntley5rlin4st_buy5t2f1g1h_arti5i_ble3d1ke2ng_o3o1z2j1lack_friday9ockbuster8g1omberg7ue3m_s1w2n_pparibas9o_ats3ehringer8fa2m1nd2o_k_ing5sch2tik2on4t1utique6x2r_adesco6idgestone9oadway5ker3ther5ussels7s1t1uild_ers6siness6y1zz3v1w1y1z_h3ca_b1fe2l_l1vinklein9m_era3p2non3petown5ital_one8r_avan4ds2e_er_s4s2sa1e1h1ino4t_ering5holic7ba1n1re2s2c1d1enter4o1rn3f_a1d2g1h_anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i_priani6rcle4sco3tadel4i_c2y_eats7k1l_aims4eaning6ick2nic1que6othing5ud3ub_med6m1n1o_ach3des3ffee4llege4ogne5m_cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking_channel11l1p2rsica5untry4pon_s4rses6pa2r_edit_card4union9icket5own3s1uise_s6u_isinella9v1w1x1y_mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e_al_er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si_gn4v2hl2iamonds6et2gital5rect_ory7scount3ver5h2y2j1k1m1np2o_cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c_o2deka3u_cation8e1g1mail3erck5nergy4gineer_ing9terprises10pson4quipment8r_icsson6ni3s_q1tate5t_isalat7u_rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n_s2rm_ers5shion4t3edex3edback6rrari3ero6i_at2delity5o2lm2nal1nce1ial7re_stone6mdale6sh_ing5t_ness6j1k1lickr3ghts4r2orist4wers5y2m1o_o_d_network8tball6rd1ex2sale4um3undation8x2r_ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n_d2rniture7tbol5yi3ga_l_lery3o1up4me_s3p1rden4y2b_iz3d_n2e_a1nt_ing5orge5f1g_ee3h1i_ft_s3ves2ing5l_ass3e1obal2o4m_ail3bh2o1x2n1odaddy5ld_point6f2o_dyear5g_le4p1t1v2p1q1r_ainger5phics5tis4een3ipe3ocery4up4s1t1u_ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc_bank7ealth_care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k_t2m1n1ockey4ldings5iday5medepot5goods5s_ense7nda3rse3spital5t_ing5t_eles2s3mail5use3w2r1sbc3t1u_ghes5yatt3undai7ibm2cbc2e1u2d1e_ee3fm2kano4l1m_amat4db2mo_bilien9n_c1dustries8finiti5o2g1k1stitute6urance4e4t_ernational10uit4vestments10o1piranga7q1r_ish4s_maili5t_anbul7t_au2v3jaguar4va3cb2e_ep2tzt3welry6io2ll2m_p2nj2o_bs1urg4t1y2p_morgan6rs3uegos4niper7kaufen5ddi3e_rryhotels6logistics9properties14fh2g1h1i_a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p_mg2n2r_d1ed3uokgroup8w1y_oto4z2la_caixa5mborghini8er3ncaster5ia3d_rover6xess5salle5t_ino3robe5w_yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i_dl2fe_insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan_s3cker3us3l1ndon4tte1o3ve3pl_financial11r1s1t_d_a3u_ndbeck6xe1ury5v1y2ma_cys3drid4if1son4keup4n_agement7go3p1rket_ing3s4riott5shalls7serati6ttel5ba2c_kinsey7d1e_d_ia3et2lbourne7me1orial6n_u2rckmsd7g1h1iami3crosoft7l1ni1t2t_subishi9k1l_b1s2m_a2n1o_bi_le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to_rcycles9v_ie4p1q1r1s_d2t_n1r2u_seum3ic3tual5v1w1x1y1z2na_b1goya4me2tura4vy3ba2c1e_c1t_bank4flix4work5ustar5w_s2xt_direct7us4f_l2g_o2hk2i_co2ke1on3nja3ssan1y5l1o_kia3rthwesternmutual14on4w_ruz3tv4p1r_a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan_group9dnavy5lo3m_ega4ne1g1l_ine5oo2pen3racle3nge4g_anic5igins6saka4tsuka4t2vh3pa_ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e_t2f_izer5g1h_armacy6d1ilips5one2to_graphy6s4ysio5ics1tet2ures6d1n_g1k2oneer5zza4k1l_ace2y_station9umbing5s3m1n_c2ohl2ker3litie5rn2st3r_america6xi3ess3ime3o_d_uctions8f1gressive8mo2perties3y5tection8u_dential9s1t1ub2w_c2y2qa1pon3uebec3st5racing4dio4e_ad1lestate6tor2y4cipes5d_stone5umbrella9hab3ise_n3t2liance6n_t_als5pair3ort3ublican8st_aurant8view_s5xroth6ich_ardli6oh3l1o1p2o_cher3ks3deo3gers4om3s_vp3u_gby3hr2n2w_e2yukyu6sa_arland6fe_ty4kura4le1on3msclub4ung5ndvik_coromant12ofi4p1rl2s1ve2xo3b_i1s2c_a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e_arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x_y3fr2g1h_angrila6rp2w2ell3ia1ksha5oes2p_ping5uji3w_time7i_lk2na1gles5te3j1k_i_n2y_pe4l_ing4m_art3ile4n_cf3o_ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa_ce3ort2t3r_l2s1t_ada2ples4r1tebank4farm7c_group6ockholm6rage3e3ream4udio2y3yle4u_cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y_dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x_i3c_i2d_k2eam2ch_nology8l1masek5nnis4va3f1g1h_d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j_maxx4x2k_maxx5l1m_all4n1o_day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r_ade1ing4ining5vel_channel7ers_insurance16ust3v2t1ube2i1nes3shu4v_s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va_cations7na1guard7c1e_gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i_ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u_elos6wales2mart4ter4ng_gou5tch_es6eather_channel12bcam3er2site5d_ding5ibo2r3f1hoswho6ien2ki2lliamhill9n_dows4e1ners6me2olterskluwer11odside6rk_s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u_tube6t1un3za_ppos4ra3ero3ip2m1one3uerich6w2")),null==el&&(el=ed("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत_म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里_大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),y(n,"'",M),y(n,"{",E),y(n,"[",D),y(n,"<",C),y(n,"(",j),y(n,"}",O),y(n,"]",T),y(n,">",A),y(n,")",P),y(n,"&",R),y(n,"*",F),y(n,"@","AT"),y(n,"`",I),y(n,"^",L),y(n,":",B),y(n,",",z),y(n,"$",U),y(n,".","DOT"),y(n,"=",q),y(n,"!",$),y(n,"-",H),y(n,"%",W),y(n,"|",V),y(n,"+",G),y(n,"#",Y),y(n,"?",Z),y(n,'"',K),y(n,"/",X),y(n,";",J),y(n,"~",Q),y(n,"_",ee),y(n,"\\",N);let r=g(n,ea,"NUM",{[o]:!0});g(r,ea,r);let l=g(n,er,b,{[a]:!0});g(l,er,l);let m=g(n,ei,w,{[s]:!0});g(m,er),g(m,ei,m);let eh=g(n,es,"WS",{[h]:!0});y(n,"\n","NL",{[h]:!0}),y(eh,"\n"),g(eh,es,eh);let ep=g(n,eo,et,{[d]:!0});g(ep,eo,ep),y(ep,"️",ep),g(y(ep,"‍"),eo,ep);let ef=[[er,l]],em=[[er,null],[ei,m]];for(let e=0;ee[0]>t[0]?1:-1);for(let t=0;t=0?i[c]=!0:er.test(r)?ea.test(r)?i[u]=!0:i[a]=!0:i[o]=!0,v(n,r,r,i)}return v(n,"localhost",k,{ascii:!0}),n.jd=new f("SYM"),{start:n,tokens:i({groups:t},en)}}(eS.customSchemes);for(let e=0;e=0&&h++,i++,c++;if(h<0)(i-=c)0&&(o.push(ex(ey,t,a)),a=[]),i-=h,c-=h;let e=d.t,r=n.slice(i-c,i);o.push(ex(e,t,r))}}return a.length>0&&o.push(ex(ey,t,a)),o}(eS.parser.start,e,function(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,a=0;for(;a=0&&(d+=n[a].length,h++),l+=n[a].length,o+=n[a].length,a++;o-=d,a-=h,l-=d,i.push({t:c.t,v:t.slice(o-l,o),s:o-l,e:o})}return i}(eS.scanner.start,e))}function eC(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new ep(n),i=eD(e),o=[];for(let e=0;e{if("string"==typeof e){eE(e);return}eE(e.scheme,e.optionalSlashes)})},onDestroy(){f.groups={},eS.scanner=null,eS.parser=null,eS.tokenQueue=[],eS.pluginQueue=[],eS.customSchemes=[],eS.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){var t;return(null===(t=e.href)||void 0===t?void 0:t.startsWith("javascript:"))?["a",(0,r.P1)(this.options.HTMLAttributes,{...e,href:""}),0]:["a",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[(0,r.K9)({find:e=>{let t=[];if(e){let n=eC(e).filter(e=>e.isLink);n.length&&n.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t},type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){var e,t,n;let i=[];return this.options.autolink&&i.push((e={type:this.type,validate:this.options.validate},new ej.Sy({key:new ej.H$("autolink"),appendTransaction:(t,n,i)=>{let o=t.some(e=>e.docChanged)&&!n.doc.eq(i.doc),a=t.some(e=>e.getMeta("preventAutolink"));if(!o||a)return;let{tr:s}=i,u=(0,r.XP)(n.doc,[...t]);if((0,r.QC)(u).forEach(({newRange:t})=>{let n,o;let a=(0,r.b5)(i.doc,t,e=>e.isTextblock);if(a.length>1?(n=a[0],o=i.doc.textBetween(n.pos,n.pos+n.node.nodeSize,void 0," ")):a.length&&i.doc.textBetween(t.from,t.to," "," ").endsWith(" ")&&(n=a[0],o=i.doc.textBetween(n.pos,t.to,void 0," ")),n&&o){let t=o.split(" ").filter(e=>""!==e);if(t.length<=0)return!1;let a=t[t.length-1],u=n.pos+o.lastIndexOf(a);if(!a)return!1;let l=eD(a).map(e=>e.toObject());if(!(1===l.length?l[0].isLink:3===l.length&&!!l[1].isLink&&["()","[]"].includes(l[0].value+l[2].value)))return!1;l.filter(e=>e.isLink).map(e=>({...e,from:u+e.start+1,to:u+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>!e.validate||e.validate(t.value)).forEach(t=>{(0,r.tI)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||s.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),s.steps.length)return s}}))),this.options.openOnClick&&i.push((t={type:this.type,whenNotEditable:"whenNotEditable"===this.options.openOnClick},new ej.Sy({key:new ej.H$("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,a;if(t.whenNotEditable&&e.editable||0!==i.button)return!1;let s=i.target,u=[];for(;"DIV"!==s.nodeName;)u.push(s),s=s.parentNode;if(!u.find(e=>"A"===e.nodeName))return!1;let l=(0,r.u9)(e.state,t.type.name),c=i.target,d=null!==(o=null==c?void 0:c.href)&&void 0!==o?o:l.href,h=null!==(a=null==c?void 0:c.target)&&void 0!==a?a:l.target;return!!c&&!!d&&(window.open(d,h),!0)}}}))),this.options.linkOnPaste&&i.push((n={editor:this.editor,type:this.type},new ej.Sy({key:new ej.H$("handlePasteLink"),props:{handlePaste:(e,t,r)=>{let{state:i}=e,{selection:o}=i,{empty:a}=o;if(a)return!1;let s="";r.content.forEach(e=>{s+=e.textContent});let u=eC(s).find(e=>e.isLink&&e.value===s);return!!s&&!!u&&(n.editor.commands.setMark(n.type,{href:u.href}),!0)}}}))),i}})},38438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},n:function(){return i}});var r=n(37243);let i=r.NB.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})},78563:function(e,t,n){"use strict";n.d(t,{Re:function(){return a},ZP:function(){return a}});var r=n(37243);let i=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,o=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,a=r.vc.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML({HTMLAttributes:e}){return["s",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.Cf)({find:i,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:o,type:this.type})]}})},39615:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});let r=n(37243).NB.create({name:"text",group:"inline"})},39475:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},v:function(){return i}});var r=n(37243);let i=r.vc.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML({HTMLAttributes:e}){return["u",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}})},85311:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(37243),i=n(79609),o=n(86900);let a=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),s=r.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>!!Object.entries((0,r.Jo)(e,this.type)).some(([,e])=>!!e)||t.unsetMark(this.name)}}}),u=/^\s*([-+*])\s$/,l=r.NB.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(a.name,this.editor.getAttributes(s.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,r.S0)({find:u,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.S0)({find:u,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(s.name),editor:this.editor})),[e]}});var c=n(31187),d=n(25059),h=n(42626),p=n(27191),f=n(26151);class m{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t,n=this.editorView.state.doc.resolve(this.cursorPos),r=!n.parent.inlineContent,i;if(r){let e=n.nodeBefore,t=n.nodeAfter;if(e||t){let n=this.editorView.nodeDOM(this.cursorPos-(e?e.nodeSize:0));if(n){let r=n.getBoundingClientRect(),o=e?r.bottom:r.top;e&&t&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}}if(!i){let e=this.editorView.coordsAtPos(this.cursorPos);i={left:e.left-this.width/2,right:e.left+this.width/2,top:e.top,bottom:e.bottom}}let o=this.editorView.dom.offsetParent;if(!this.element&&(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),o&&(o!=document.body||"static"!=getComputedStyle(o).position)){let n=o.getBoundingClientRect();e=n.left-o.scrollLeft,t=n.top-o.scrollTop}else e=-pageXOffset,t=-pageYOffset;this.element.style.left=i.left-e+"px",this.element.style.top=i.top-t+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i="function"==typeof r?r(this.editorView,t,e):r;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,f.nj)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}let g=r.hj.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[function(e={}){return new p.Sy({view:t=>new m(t,e)})}(this.options)]}});var v=n(36518),y=n(39949),b=n(71391),w=n(86509);let k=r.NB.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:e}){return["hr",(0,r.P1)(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{let{$to:n}=t.selection,r=e();return 0===n.parentOffset?r.insertContentAt(Math.max(n.pos-2,0),{type:this.name}):r.insertContent({type:this.name}),r.command(({tr:e,dispatch:t})=>{var n;if(t){let{$to:t}=e.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?e.setSelection(p.Bs.create(e.doc,t.pos+1)):t.nodeAfter.isBlock?e.setSelection(p.qv.create(e.doc,t.pos)):e.setSelection(p.Bs.create(e.doc,t.pos));else{let i=null===(n=t.parent.type.contentMatch.defaultType)||void 0===n?void 0:n.create();i&&(e.insert(r,i),e.setSelection(p.Bs.create(e.doc,r+1)))}e.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.x2)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}});var x=n(9432);let _=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),S=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),E=r.vc.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>!!Object.entries((0,r.Jo)(e,this.type)).some(([,e])=>!!e)||t.unsetMark(this.name)}}}),D=/^(\d+)\.\s$/,C=r.NB.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){let{start:t,...n}=e;return 1===t?["ol",(0,r.P1)(this.options.HTMLAttributes,n),0]:["ol",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(S.name,this.editor.getAttributes(E.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,r.S0)({find:D,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,r.S0)({find:D,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(E.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}});var j=n(38438),O=n(78563),T=n(39615);let A=r.hj.create({name:"starterKit",addExtensions(){var e,t,n,r,a,s,u,p,f,m,S,E,D,A,P,R,M,F;let N=[];return!1!==this.options.blockquote&&N.push(i.V6.configure(null===(e=this.options)||void 0===e?void 0:e.blockquote)),!1!==this.options.bold&&N.push(o.d8.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&N.push(l.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&N.push(c.EK.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&N.push(d.dn.configure(null===(a=this.options)||void 0===a?void 0:a.codeBlock)),!1!==this.options.document&&N.push(h.B.configure(null===(s=this.options)||void 0===s?void 0:s.document)),!1!==this.options.dropcursor&&N.push(g.configure(null===(u=this.options)||void 0===u?void 0:u.dropcursor)),!1!==this.options.gapcursor&&N.push(v.f.configure(null===(p=this.options)||void 0===p?void 0:p.gapcursor)),!1!==this.options.hardBreak&&N.push(y.U.configure(null===(f=this.options)||void 0===f?void 0:f.hardBreak)),!1!==this.options.heading&&N.push(b.X.configure(null===(m=this.options)||void 0===m?void 0:m.heading)),!1!==this.options.history&&N.push(w.A.configure(null===(S=this.options)||void 0===S?void 0:S.history)),!1!==this.options.horizontalRule&&N.push(k.configure(null===(E=this.options)||void 0===E?void 0:E.horizontalRule)),!1!==this.options.italic&&N.push(x.Tx.configure(null===(D=this.options)||void 0===D?void 0:D.italic)),!1!==this.options.listItem&&N.push(_.configure(null===(A=this.options)||void 0===A?void 0:A.listItem)),!1!==this.options.orderedList&&N.push(C.configure(null===(P=this.options)||void 0===P?void 0:P.orderedList)),!1!==this.options.paragraph&&N.push(j.n.configure(null===(R=this.options)||void 0===R?void 0:R.paragraph)),!1!==this.options.strike&&N.push(O.Re.configure(null===(M=this.options)||void 0===M?void 0:M.strike)),!1!==this.options.text&&N.push(T.x.configure(null===(F=this.options)||void 0===F?void 0:F.text)),N}})},75054:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{G7:function(){return tj},Th:function(){return tC},gk:function(){return e9},P0:function(){return eH},NI:function(){return tO},cQ:function(){return eY}});var s=n(2784),u=n(51987);let l={toVector:(e,t)=>(void 0===e&&(e=t),Array.isArray(e)?e:[e,e]),add:(e,t)=>[e[0]+t[0],e[1]+t[1]],sub:(e,t)=>[e[0]-t[0],e[1]-t[1]],addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function c(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function d(e,t,n,r=.15){return 0===r?Math.max(t,Math.min(e,n)):en?+c(e-n,n-t,r)+n:e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;tt.includes(e.identifier));return x(n,r)}function S(e){let t=k(e);return b(e)?t.identifier:t.pointerId}function E(e){let t=k(e);return[t.clientX,t.clientY]}function D(e){let{deltaX:t,deltaY:n,deltaMode:r}=e;return 1===r?(t*=40,n*=40):2===r&&(t*=800,n*=800),[t,n]}function C(e,...t){return"function"==typeof e?e(...t):e}function j(){}function O(e,t){return Object.assign({},t,e||{})}class T{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){let{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){let t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?C(n.from,t):t.offset,t.offset=t.lastOffset),t.startTime=t.timeStamp=e.timeStamp}computeValues(e){let t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){let e=this.state;e._initial=e._values,e.initial=e.values}compute(e){let{state:t,config:n,shared:r}=this;t.args=this.args;let i=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){let t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){let{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:i,ctrlKey:o})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,i=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){let e=t._delta.map(Math.abs);l.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);let[o,a]=t._movement,[s,u]=n.threshold,{_step:c,values:h}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(o)>=s&&h[0]),!1===c[1]&&(c[1]=Math.abs(a)>=u&&h[1])):(!1===c[0]&&(c[0]=Math.abs(o)>=s&&Math.sign(o)*s),!1===c[1]&&(c[1]=Math.abs(a)>=u&&Math.sign(a)*u)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;let p=[0,0];if(n.hasCustomTransform){let[e,t]=h;p[0]=!1!==c[0]?e-c[0]:0,p[1]=!1!==c[1]?t-c[1]:0}else p[0]=!1!==c[0]?o-c[0]:0,p[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(p);let f=t.offset,m=t._active&&!t._blocked||t.active;m&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=C(n.bounds,t)),this.setup&&this.setup()),t.movement=p,this.computeOffset()));let[g,v]=t.offset,[[y,b],[w,k]]=t._bounds;t.overflow=[gb?1:0,vk?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);let x=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,i]){let[[o,a],[s,u]]=e;return[d(t,o,a,r),d(n,s,u,i)]}(t._bounds,t.offset,x),t.delta=l.sub(t.offset,f),this.computeMovement(),m&&(!t.last||i>32)){t.delta=l.sub(t.offset,f);let e=t.delta.map(Math.abs);l.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&i>0&&(t.velocity=[e[0]/i,e[1]/i])}}emit(){let e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;let r=this.handler(f(f(f({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class A extends T{constructor(...e){super(...e),h(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=l.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=l.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){let t=this.state,n=this.config;if(!t.axis&&e){let r="object"==typeof n.axisThreshold?n.axisThreshold[w(e)]:n.axisThreshold;t.axis=function([e,t],n){let r=Math.abs(e),i=Math.abs(t);return r>i&&r>n?"x":i>r&&i>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}let P=e=>e,R={enabled:(e=!0)=>e,eventOptions:(e,t,n)=>f(f({},n.shared.eventOptions),e),preventDefault:(e=!1)=>e,triggerAllEvents:(e=!1)=>e,rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return l.toVector(e)}},from:e=>"function"==typeof e?e:null!=e?l.toVector(e):void 0,transform(e,t,n){let r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||P},threshold:e=>l.toVector(e,0)},M=0,F=f(f({},R),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(e=M)=>e,bounds(e={}){if("function"==typeof e)return t=>F.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;let{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:i=1/0}=e;return[[t,n],[r,i]]}}),N={ArrowRight:(e=1)=>[10*e,0],ArrowLeft:(e=1)=>[-10*e,0],ArrowUp:(e=1)=>[0,-10*e],ArrowDown:(e=1)=>[0,10*e]};class I extends A{constructor(...e){super(...e),h(this,"ingKey","dragging")}reset(){super.reset();let e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){let e=this.state;if(e._bounds instanceof HTMLElement){let t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=F.bounds(r)}}cancel(){let e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){let t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;let r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=S(e),n._pointerActive=!0,this.computeValues(E(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==w(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){let t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){let t=this.state,n=this.config;if(!t._pointerActive||t.type===e.type&&e.timeStamp===t.timeStamp)return;let r=S(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;let i=E(e);if(document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=l.sub(i,t._values),this.computeValues(i)),l.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay"),t.active=!1,this.startPointerDrag(e);return}if(n.preventScrollAxis&&!t._preventScroll){if(!t.axis)return;if(t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis){t._active=!1,this.clean();return}this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(e);return}this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){}let t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;let r=S(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);let[i,o]=t._distance;if(t.tap=i<=n.tapsThreshold&&o<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{let[e,r]=t.direction,[i,o]=t.velocity,[a,s]=t.movement,[u,l]=n.swipe.velocity,[c,d]=n.swipe.distance,h=n.swipe.duration;t.elapsedTimeu&&Math.abs(a)>c&&(t.swipe[0]=e),Math.abs(o)>l&&Math.abs(s)>d&&(t.swipe[1]=r))}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){let t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,"persist"in e&&"function"==typeof e.persist&&e.persist();let t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(e)},this.config.delay)}keyDown(e){let t=N[e.key];if(t){let n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(r),n._keyboardActive=!0,l.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in N&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){let t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}let L="undefined"!=typeof window&&window.document&&window.document.createElement;function B(){return L&&"ontouchstart"in window||L&&window.navigator.maxTouchPoints>1}let z={isBrowser:L,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:B(),touchscreen:B(),pointer:L&&"onpointerdown"in window,pointerLock:L&&"exitPointerLock"in window.document},U={mouse:0,touch:0,pen:8},q=f(f({},F),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:i=!1}={}}){return(this.pointerLock=r&&z.pointerLock,z.touch&&n)?"touch":this.pointerLock?"mouse":z.pointer&&!i?"pointer":z.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,z.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1}={}}){return this.pointerButtons=r,!this.pointerLock&&"pointer"===this.device&&n},keys:(e=!0)=>e,threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:i}){let o=l.toVector(e,n?r:i?1:0);return this.filterTaps=n,this.tapsThreshold=r,o},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(l.toVector(e)),distance:this.transform(l.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold:e=>e?f(f({},U),e):U});class $ extends T{constructor(...e){super(...e),h(this,"ingKey","pinching"),h(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();let e=this.state;e._touchIds=[],e.canceled=!1,e.cancel=this.cancel.bind(this),e.turns=0}computeOffset(){let{type:e,movement:t,lastOffset:n}=this.state;"wheel"===e?this.state.offset=l.add(t,n):this.state.offset=[(1+t[0])*n[0],t[1]+n[1]]}computeMovement(){let{offset:e,lastOffset:t}=this.state;this.state.movement=[e[0]/t[0],e[1]-t[1]]}axisIntent(){let e=this.state,[t,n]=e._movement;if(!e.axis){let r=30*Math.abs(t)-Math.abs(n);r<0?e.axis="angle":r>0&&(e.axis="scale")}}restrictToAxis(e){this.config.lockDirection&&("scale"===this.state.axis?e[1]=0:"angle"===this.state.axis&&(e[0]=0))}cancel(){let e=this.state;e.canceled||setTimeout(()=>{e.canceled=!0,e._active=!1,this.compute(),this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);let t=this.state,n=this.ctrl.touchIds;if(t._active&&t._touchIds.every(e=>n.has(e))||n.size<2)return;this.start(e),t._touchIds=Array.from(n).slice(0,2);let r=_(e,t._touchIds);this.pinchStart(e,r)}pointerStart(e){if(null!=e.buttons&&e.buttons%2!=1)return;this.ctrl.setEventIds(e),e.target.setPointerCapture(e.pointerId);let t=this.state,n=t._pointerEvents,r=this.ctrl.pointerIds;if(t._active&&Array.from(n.keys()).every(e=>r.has(e))||(n.size<2&&n.set(e.pointerId,e),t._pointerEvents.size<2))return;this.start(e);let i=x(...Array.from(n.values()));this.pinchStart(e,i)}pinchStart(e,t){this.state.origin=t.origin,this.computeValues([t.distance,t.angle]),this.computeInitial(),this.compute(e),this.emit()}touchMove(e){if(!this.state._active)return;let t=_(e,this.state._touchIds);this.pinchMove(e,t)}pointerMove(e){let t=this.state._pointerEvents;if(t.has(e.pointerId)&&t.set(e.pointerId,e),!this.state._active)return;let n=x(...Array.from(t.values()));this.pinchMove(e,n)}pinchMove(e,t){let n=this.state,r=n._values[1],i=t.angle-r,o=0;Math.abs(i)>270&&(o+=Math.sign(i)),this.computeValues([t.distance,t.angle-360*o]),n.origin=t.origin,n.turns=o,n._movement=[n._values[0]/n._initial[0]-1,n._values[1]-n._initial[1]],this.compute(e),this.emit()}touchEnd(e){this.ctrl.setEventIds(e),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(e),this.emit())}pointerEnd(e){let t=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(e){}t._pointerEvents.has(e.pointerId)&&t._pointerEvents.delete(e.pointerId),t._active&&t._pointerEvents.size<2&&(t._active=!1,this.compute(e),this.emit())}gestureStart(e){e.cancelable&&e.preventDefault();let t=this.state;t._active||(this.start(e),this.computeValues([e.scale,e.rotation]),t.origin=[e.clientX,e.clientY],this.compute(e),this.emit())}gestureMove(e){if(e.cancelable&&e.preventDefault(),!this.state._active)return;let t=this.state;this.computeValues([e.scale,e.rotation]),t.origin=[e.clientX,e.clientY];let n=t._movement;t._movement=[e.scale-1,e.rotation],t._delta=l.sub(t._movement,n),this.compute(e),this.emit()}gestureEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}wheel(e){let t=this.config.modifierKey;(!t||e[t])&&(this.state._active?this.wheelChange(e):this.wheelStart(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(e){this.start(e),this.wheelChange(e)}wheelChange(e){"uv"in e||!e.cancelable||e.preventDefault();let t=this.state;t._delta=[-D(e)[1]/100*t.offset[0],0],l.addTo(t._movement,t._delta),this.state.origin=[e.clientX,e.clientY],this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){let t=this.config.device;t&&(e(t,"start",this[t+"Start"].bind(this)),e(t,"change",this[t+"Move"].bind(this)),e(t,"end",this[t+"End"].bind(this)),e(t,"cancel",this[t+"End"].bind(this))),e("wheel","",this.wheel.bind(this),{passive:!1})}}let H=f(f({},R),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!z.touch&&z.gesture)return"gesture";if(z.touch&&r)return"touch";if(z.touchscreen){if(z.pointer)return"pointer";if(z.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){let i=e=>{let t=O(C(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},o=e=>{let t=O(C(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[i(),o()]:e=>[i(e),o(e)]},threshold(e,t,n){return this.lockDirection="lock"===n.axis,l.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey:e=>void 0===e?"ctrlKey":e});class W extends A{constructor(...e){super(...e),h(this,"ingKey","moving")}move(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.state._active?this.moveChange(e):this.moveStart(e),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(e){this.start(e),this.computeValues(E(e)),this.compute(e),this.computeInitial(),this.emit()}moveChange(e){if(!this.state._active)return;let t=E(e),n=this.state;n._delta=l.sub(t,n._values),l.addTo(n._movement,n._delta),this.computeValues(t),this.compute(e),this.emit()}moveEnd(e){this.state._active&&(this.state._active=!1,this.compute(e),this.emit())}bind(e){e("pointer","change",this.move.bind(this)),e("pointer","leave",this.moveEnd.bind(this))}}let V=f(f({},F),{},{mouseOnly:(e=!0)=>e});class G extends A{constructor(...e){super(...e),h(this,"ingKey","scrolling")}scroll(e){this.state._active||this.start(e),this.scrollChange(e),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(e){e.cancelable&&e.preventDefault();let t=this.state,n=function(e){var t,n;let{scrollX:r,scrollY:i,scrollLeft:o,scrollTop:a}=e.currentTarget;return[null!==(t=null!=r?r:o)&&void 0!==t?t:0,null!==(n=null!=i?i:a)&&void 0!==n?n:0]}(e);t._delta=l.sub(n,t._values),l.addTo(t._movement,t._delta),this.computeValues(n),this.compute(e),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("scroll","",this.scroll.bind(this))}}class Y extends A{constructor(...e){super(...e),h(this,"ingKey","wheeling")}wheel(e){this.state._active||this.start(e),this.wheelChange(e),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){let t=this.state;t._delta=D(e),l.addTo(t._movement,t._delta);let[n,r]=t.overflow,[i,o]=t._delta,[a,s]=t._direction;(n<0&&i>0&&a<0||n>0&&i<0&&a>0)&&(t._movement[0]=t._movementBound[0]),(r<0&&o>0&&s<0||r>0&&o<0&&s>0)&&(t._movement[1]=t._movementBound[1]),this.compute(e),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(e){e("wheel","",this.wheel.bind(this))}}class Z extends A{constructor(...e){super(...e),h(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(E(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;let t=this.state;if(!t._active)return;t._active=!1;let n=E(e);t._movement=t._delta=l.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}}let K=f(f({},F),{},{mouseOnly:(e=!0)=>e}),J=new Map,X=new Map;function Q(e){J.set(e.key,e.engine),X.set(e.key,e.resolver)}let ee={key:"drag",engine:I,resolver:q},et={key:"hover",engine:Z,resolver:K},en={key:"move",engine:W,resolver:V},er={key:"pinch",engine:$,resolver:H},ei={key:"scroll",engine:G,resolver:F},eo={key:"wheel",engine:Y,resolver:F},ea={target(e){if(e)return()=>"current"in e?e.current:e},enabled:(e=!0)=>e,window:(e=z.isBrowser?window:void 0)=>e,eventOptions:({passive:e=!0,capture:t=!1}={})=>({passive:e,capture:t}),transform:e=>e},es=["target","eventOptions","window","enabled","transform"];function eu(e={},t){let n={};for(let[r,i]of Object.entries(t))switch(typeof i){case"function":n[r]=i.call(n,e[r],r,e);break;case"object":n[r]=eu(e[r],i);break;case"boolean":i&&(n[r]=e[r])}return n}class el{constructor(e,t){h(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,i){let o=this._listeners,a=function(e,t=""){let n=m[e];return e+(n&&n[t]||t)}(t,n),s=f(f({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),i);e.addEventListener(a,r,s);let u=()=>{e.removeEventListener(a,r,s),o.delete(u)};return o.add(u),u}clean(){this._listeners.forEach(e=>e()),this._listeners.clear()}}class ec{constructor(){h(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){let t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e)),this._timeouts.clear()}}class ed{constructor(e){h(this,"gestures",new Set),h(this,"_targetEventStore",new el(this)),h(this,"gestureEventStores",{}),h(this,"gestureTimeoutStores",{}),h(this,"handlers",{}),h(this,"config",{}),h(this,"pointerIds",new Set),h(this,"touchIds",new Set),h(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),e.drag&&eh(this,"drag"),e.wheel&&eh(this,"wheel"),e.scroll&&eh(this,"scroll"),e.move&&eh(this,"move"),e.pinch&&eh(this,"pinch"),e.hover&&eh(this,"hover")}setEventIds(e){return b(e)?(this.touchIds=new Set(Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n?void 0:null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}).map(e=>e.identifier)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t){let{target:n,eventOptions:r,window:i,enabled:o,transform:a}=e,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,es),u={shared:eu({target:n,eventOptions:r,window:i,enabled:o,transform:a},ea)};if(t){let e=X.get(t);u[t]=eu(f({shared:u.shared},s),e)}else for(let e in s){let t=X.get(e);t&&(u[e]=eu(f({shared:u.shared},s[e]),t))}return u}(e,t)}clean(){for(let e of(this._targetEventStore.clean(),this.gestures))this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){let t;let n=this.config.shared,r={};if(!n.target||(t=n.target())){if(n.enabled){for(let n of this.gestures){let i=this.config[n],o=ep(r,i.eventOptions,!!t);i.enabled&&new(J.get(n))(this,e,n).bind(o)}let i=ep(r,n.eventOptions,!!t);for(let t in this.nativeHandlers)i(t,"",n=>this.nativeHandlers[t](f(f({},this.state.shared),{},{event:n,args:e})),void 0,!0)}for(let e in r)r[e]=function(...e){return 0===e.length?j:1===e.length?e[0]:function(){let t;for(let n of e)t=n.apply(this,arguments)||t;return t}}(...r[e]);if(!t)return r;for(let e in r){let{device:n,capture:i,passive:o}=function(e){let t=e.substring(2).toLowerCase(),n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));let r=y.includes(t)?"capturecapture":"capture",i=!!~t.indexOf(r);return i&&(t=t.replace("capture","")),{device:t,capture:i,passive:n}}(e);this._targetEventStore.add(t,n,"",r[e],{capture:i,passive:o})}}}}function eh(e,t){e.gestures.add(t),e.gestureEventStores[t]=new el(e,t),e.gestureTimeoutStores[t]=new ec}let ep=(e,t,n)=>(r,i,o,a={},s=!1)=>{var u,l;let c=null!==(u=a.capture)&&void 0!==u?u:t.capture,d=null!==(l=a.passive)&&void 0!==l?l:t.passive,h=s?r:function(e,t="",n=!1){let r=m[e],i=r&&r[t]||t;return"on"+g(e)+g(i)+(!function(e=!1,t){return e&&!v.includes(t)}(n,i)?"":"Capture")}(r,i,c);n&&d&&(h+="Passive"),e[h]=e[h]||[],e[h].push(o)},ef=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function em(e,t,n,r,i,o){if(!e.has(n)||!J.has(r))return;let a=n+"Start",s=n+"End";i[r]=e=>{let r;return e.first&&a in t&&t[a](e),n in t&&(r=t[n](e)),e.last&&s in t&&t[s](e),r},o[r]=o[r]||{}}function eg(e,t,n,r=e=>e){return e*r(.5-t*(.5-n))}function ev(e,t){return[e[0]+t[0],e[1]+t[1]]}function ey(e,t){return[e[0]-t[0],e[1]-t[1]]}function eb(e,t){return[e[0]*t,e[1]*t]}function ew(e){return[e[1],-e[0]]}function ek(e,t){var n;return(n=ey(e,t))[0]*n[0]+n[1]*n[1]}function ex(e){var t;return t=Math.hypot(e[0],e[1]),[e[0]/t,e[1]/t]}function e_(e,t,n){let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*r+t[0],o*r+a*i+t[1]]}function eS(e,t,n){return ev(e,eb(ey(t,e),n))}var{min:eE,PI:eD}=Math,eC=eD+1e-4,ej=n(17947),eO=Object.defineProperty,eT=Object.defineProperties,eA=Object.getOwnPropertyDescriptors,eP=Object.getOwnPropertySymbols,eR=Object.prototype.hasOwnProperty,eM=Object.prototype.propertyIsEnumerable,eF=(e,t,n)=>t in e?eO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eN=(e,t)=>{for(var n in t||(t={}))eR.call(t,n)&&eF(e,n,t[n]);if(eP)for(var n of eP(t))eM.call(t,n)&&eF(e,n,t[n]);return e},eI=(e,t)=>eT(e,eA(t)),eL=(e,t)=>{var n={};for(var r in e)eR.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eP)for(var r of eP(e))0>t.indexOf(r)&&eM.call(e,r)&&(n[r]=e[r]);return n},eB=(e,t,n)=>(eF(e,"symbol"!=typeof t?t+"":t,n),n),ez=s.createContext({});function eU(){return s.useContext(ez)}var eq=((r=eq||{}).TransformSelected="transform_selected",r.TranslateSelected="translate_selected",r.TransformAll="transform_all",r.TranslateAll="translate_all",r),e$=((i=e$||{}).Top="top_edge",i.Right="right_edge",i.Bottom="bottom_edge",i.Left="left_edge",i),eH=((o=eH||{}).TopLeft="top_left_corner",o.TopRight="top_right_corner",o.BottomRight="bottom_right_corner",o.BottomLeft="bottom_left_corner",o),eW=((a=eW||{}).minX="minX",a.midX="midX",a.maxX="maxX",a.minY="minY",a.midY="midY",a.maxY="maxY",a);String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return"[object regexp]"===Object.prototype.toString.call(e).toLowerCase()?this.replace(e,t):this.replace(RegExp(e,"g"),t)});var eV=2*Math.PI,eG=class{static lerp(e,t,n){return e*(1-(n=eG.clamp(n,0,1)))+t*n}static lerpColor(e,t,n=.5){function r(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}let i=r(e)||[0,0,0],o=r(t)||[0,0,0],a=i.slice();for(let e=0;e<3;e++)a[e]=Math.round(a[e]+n*(o[e]-i[e]));return"#"+(16777216+(a[0]<<16)+(a[1]<<8)+a[2]).toString(16).slice(1)}static modulate(e,t,n,r=!1){let[i,o]=t,[a,s]=n,u=a+(e-i)/(o-i)*(s-a);return r?at[n]="object"==typeof e[n]?eG.deepClone(e[n]):e[n]),t}return e}static rng(e=""){let t=0,n=0,r=0,i=0;function o(){let e=t^t<<11;return t=n,n=r,r=i,(i^=(i>>>19^e^e>>>8)>>>0)/4294967296}for(let n=0;nr}static degreesToRadians(e){return e*Math.PI/180}static radiansToDegrees(e){return 180*e/Math.PI}static getArcLength(e,t,n,r){return 2*Math.PI*t*(eG.getSweep(e,n,r)/(2*Math.PI))}static getSweepFlag(e,t,n){let r=u.B.angle(e,n);return(u.B.angle(e,t)-r+3*Math.PI)%(2*Math.PI)-Math.PI>0?0:1}static getLargeArcFlag(e,t,n){let r=u.B.angle(n,e);return Math.abs((u.B.angle(n,t)-r+3*Math.PI)%(2*Math.PI)-Math.PI)>Math.PI/2?0:1}static getArcDashOffset(e,t,n,r,i){let o=eG.getSweepFlag(e,n,r),a=eG.getArcLength(e,t,n,r);return-(o<0?a:2*Math.PI*e[2]-a)/2+i}static getEllipseDashOffset(e,t){return-(2*Math.PI*e[2])/2+-t}static pointInCircle(e,t,n){return u.B.dist(e,t)<=n}static pointInEllipse(e,t,n,r,i=0){let o=Math.cos(i=i||0),a=Math.sin(i),s=u.B.sub(e,t),l=o*s[0]+a*s[1],c=a*s[0]-o*s[1];return l*l/(n*n)+c*c/(r*r)<=1}static pointInRect(e,t){return!(e[0]e[0]+t[0]||e[1]e[1]+t[1])}static pointInPolygon(e,t){let n=0;return t.forEach((r,i)=>{let o=t[(i+1)%t.length];r[1]<=e[1]?o[1]>e[1]&&u.B.cross(r,o,e)>0&&(n+=1):o[1]<=e[1]&&0>u.B.cross(r,o,e)&&(n-=1)}),0!==n}static pointInBounds(e,t){return!(e[0]t.maxX||e[1]t.maxY)}static pointInPolyline(e,t,n=3){for(let r=1;rt.maxX||e.maxYt.maxY)}static boundsContain(e,t){return e.minXt.maxY&&e.maxX>t.maxX}static boundsContained(e,t){return eG.boundsContain(t,e)}static boundsAreEqual(e,t){return!(t.maxX!==e.maxX||t.minX!==e.minX||t.maxY!==e.maxY||t.minY!==e.minY)}static getBoundsFromPoints(e,t=0){let n=1/0,r=1/0,i=-1/0,o=-1/0;if(e.length<2)n=0,r=0,i=1,o=1;else for(let[t,a]of e)n=Math.min(t,n),r=Math.min(a,r),i=Math.max(t,i),o=Math.max(a,o);return 0!==t?eG.getBoundsFromPoints(e.map(e=>u.B.rotWith(e,[(n+i)/2,(r+o)/2],t))):{minX:n,minY:r,maxX:i,maxY:o,width:Math.max(1,i-n),height:Math.max(1,o-r)}}static centerBounds(e,t){let n=this.getBoundsCenter(e),r=t[0]-n[0],i=t[1]-n[1];return this.translateBounds(e,[r,i])}static snapBoundsToGrid(e,t){let n=Math.round(e.minX/t)*t,r=Math.round(e.minY/t)*t,i=Math.round(e.maxX/t)*t,o=Math.round(e.maxY/t)*t;return{minX:n,minY:r,maxX:i,maxY:o,width:Math.max(1,i-n),height:Math.max(1,o-r)}}static translateBounds(e,t){return{minX:e.minX+t[0],minY:e.minY+t[1],maxX:e.maxX+t[0],maxY:e.maxY+t[1],width:e.width,height:e.height}}static rotateBounds(e,t,n){let[r,i]=u.B.rotWith([e.minX,e.minY],t,n),[o,a]=u.B.rotWith([e.maxX,e.maxY],t,n);return{minX:r,minY:i,maxX:o,maxY:a,width:e.width,height:e.height}}static getRotatedEllipseBounds(e,t,n,r,i=0){let o=Math.cos(i),a=Math.sin(i),s=Math.hypot(n*o,r*a),u=Math.hypot(n*a,r*o);return{minX:e+n-s,minY:t+r-u,maxX:e+n+s,maxY:t+r+u,width:2*s,height:2*u}}static getExpandedBounds(e,t){let n=Math.min(e.minX,t.minX),r=Math.min(e.minY,t.minY),i=Math.max(e.maxX,t.maxX),o=Math.max(e.maxY,t.maxY),a=Math.abs(i-n),s=Math.abs(o-r);return{minX:n,minY:r,maxX:i,maxY:o,width:a,height:s}}static getCommonBounds(e){if(e.length<2)return e[0];let t=e[0];for(let n=1;nu.B.rotWith(e,n,t))}static getTransformedBoundingBox(e,t,n,r=0,i=!1){let[o,a]=[e.minX,e.minY],[s,l]=[e.maxX,e.maxY],[c,d]=[e.minX,e.minY],[h,p]=[e.maxX,e.maxY];if("center"===t)return{minX:c+n[0],minY:d+n[1],maxX:h+n[0],maxY:p+n[1],width:h-c,height:p-d,scaleX:1,scaleY:1};let[f,m]=u.B.rot(n,-r);switch(t){case"top_edge":case"top_left_corner":case"top_right_corner":d+=m;break;case"bottom_edge":case"bottom_left_corner":case"bottom_right_corner":p+=m}switch(t){case"left_edge":case"top_left_corner":case"bottom_left_corner":c+=f;break;case"right_edge":case"top_right_corner":case"bottom_right_corner":h+=f}let g=s-o,v=l-a,y=(h-c)/g,b=(p-d)/v,w=Math.abs(h-c),k=Math.abs(p-d);if(i){let e=g/v,n=eu.B.rotWith(e,n,t)),i=eG.getBoundsFromPoints(r);return[i.width,i.height]}static getBoundsCenter(e){return[e.minX+e.width/2,e.minY+e.height/2]}static getBoundsWithCenter(e){let t=eG.getBoundsCenter(e);return eI(eN({},e),{midX:t[0],midY:t[1]})}static getCommonTopLeft(e){let t=[1/0,1/0];return e.forEach(e=>{t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1])}),t}static getFromCache(e,t,n){let r=e.get(t);if(void 0===r&&(e.set(t,n()),void 0===(r=e.get(t))))throw Error("Cache did not include item!");return r}static uniqueId(e=""){return e?((Number(e)^16*Math.random())>>Number(e)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,eG.uniqueId)}static rotateArray(e,t){return e.map((n,r)=>e[(r+t)%e.length])}static debounce(e,t=0){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(r),t)}}static getSvgPathFromStroke(e){let t=e.length;if(!t)return"";let n=e[0],r=`M${n[0].toFixed(3)},${n[1].toFixed(3)}Q`;for(let n=0,i=t-1;nn=!1,t),r=e(...i)),r}}static isDarwin(){return/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)}static metaKey(e){return eG.isDarwin()?e.metaKey:e.ctrlKey}static lns(e){let t=e.split("");return t.push(...t.splice(0,Math.round(t.length/5))),t.push(...t.splice(0,Math.round(t.length/4))),t.push(...t.splice(0,Math.round(t.length/3))),t.push(...t.splice(0,Math.round(t.length/2))),t.reverse().map(e=>+e?5>+e?5+ +e:+e>5?+e-5:e:e).join("")}},eY=eG;eB(eY,"getSnapPoints",(e,t,n)=>{let r=eN({},e),i=[0,0],o=[],a={minX:{id:"minX",isSnapped:!1},midX:{id:"midX",isSnapped:!1},maxX:{id:"maxX",isSnapped:!1},minY:{id:"minY",isSnapped:!1},midY:{id:"midY",isSnapped:!1},maxY:{id:"maxY",isSnapped:!1}},s=["midX","minX","maxX"],u=["midY","minY","maxY"],l=t.map(e=>{let t=s.flatMap((t,n)=>s.map((i,o)=>{let a=r[t]-e[i],s=Math.abs(a);return{f:t,t:i,gap:a,distance:s,isCareful:0===n||n+o===3}})),n=u.flatMap((t,n)=>u.map((i,o)=>{let a=r[t]-e[i],s=Math.abs(a);return{f:t,t:i,gap:a,distance:s,isCareful:0===n||n+o===3}}));return[e,t,n]}),c=1/0,d=1/0,h=1/0,p=1/0;return l.forEach(([e,t,r])=>{t.forEach(e=>{e.distance{e.distance{c!==1/0&&t.forEach(t=>{2>Math.abs(t.gap-c)&&(a[t.f]=eI(eN({},a[t.f]),{isSnapped:!0,to:e[t.t],B:e,distance:t.distance}))}),d!==1/0&&n.forEach(t=>{2>Math.abs(t.gap-d)&&(a[t.f]=eI(eN({},a[t.f]),{isSnapped:!0,to:e[t.t],B:e,distance:t.distance}))})}),i[0]=c===1/0?0:c,i[1]=d===1/0?0:d,r.minX-=i[0],r.midX-=i[0],r.maxX-=i[0],r.minY-=i[1],r.midY-=i[1],r.maxY-=i[1],s.forEach(e=>{let t=a[e];if(!t.isSnapped)return;let{id:n,B:i}=t,s=r[n];o.push("minX"===n?[[s,r.midY],[s,i.minY],[s,i.maxY]]:[[s,r.minY],[s,r.maxY],[s,i.minY],[s,i.maxY]])}),u.forEach(e=>{let t=a[e];if(!t.isSnapped)return;let{id:n,B:i}=t,s=r[n];o.push("midY"===n?[[r.midX,s],[i.minX,s],[i.maxX,s]]:[[r.minX,s],[r.maxX,s],[i.minX,s],[i.maxX,s]])}),{offset:i,snapLines:o}}),eB(eY,"deepMerge",(e,t)=>{let n=eN({},e);for(let[e,r]of Object.entries(t))n[e]=r!==Object(r)||Array.isArray(r)?r:eG.deepMerge(n[e],r);return n});var eZ=new Map,eK={accent:"rgb(255, 0, 0)",brushFill:"rgba(0,0,0,.05)",brushStroke:"rgba(0,0,0,.25)",brushDashStroke:"rgba(0,0,0,.6)",selectStroke:"rgb(66, 133, 244)",selectFill:"rgba(65, 132, 244, 0.05)",binding:"rgba(65, 132, 244, 0.12)",background:"rgb(248, 249, 250)",foreground:"rgb(51, 51, 51)",grid:"rgba(144, 144, 144, 1)"},eJ=((e,...t)=>e.reduce((e,n,r)=>e+n+(r * { stroke: var(--tl-selectFill); } .tl-handle:active .tl-handle-bg { cursor: grabbing; fill: var(--tl-selectFill); } .tl-handle:active .tl-handle-bg > * { stroke: var(--tl-selectFill); } .tl-handle { fill: var(--tl-background); stroke: var(--tl-selectStroke); stroke-width: 1.5px; } .tl-handle-bg { fill: transparent; stroke: none; pointer-events: all; r: calc(16px / max(1, var(--tl-zoom))); } .tl-binding-indicator { fill: transparent; stroke: var(--tl-binding); } .tl-centered-g { transform: translate(var(--tl-padding), var(--tl-padding)); } .tl-current-parent > *[data-shy='true'] { opacity: 1; } .tl-binding { fill: none; stroke: var(--tl-selectStroke); stroke-width: calc(2px * var(--tl-scale)); } .tl-grid-dot { fill: var(--tl-grid); } .tl-erase-line { stroke-linejoin: round; stroke-linecap: round; pointer-events: none; fill: var(--tl-grid); opacity: 0.32; } `;function eX(e){let{callbacks:t,inputs:n}=eU(),r=s.useCallback(r=>{var i,o,a;if(r.dead||(r.dead=!0,!n.pointerIsValid(r)))return;let s=n.pointerDown(r,e);if(2===r.button){null==(i=t.onRightPointBoundsHandle)||i.call(t,s,r);return}0===r.button&&(null==(o=t.onPointBoundsHandle)||o.call(t,s,r)),null==(a=t.onPointerDown)||a.call(t,s,r)},[n,t,e]),i=s.useCallback(r=>{var i,o,a;if(r.dead||(r.dead=!0,2===r.button||!n.pointerIsValid(r)))return;let s=n.pointerUp(r,e),u=n.isDoubleClick();0===r.button&&(u&&!(s.altKey||s.metaKey)&&(null==(i=t.onDoubleClickBoundsHandle)||i.call(t,s,r)),null==(o=t.onReleaseBoundsHandle)||o.call(t,s,r)),null==(a=t.onPointerUp)||a.call(t,s,r)},[n,t,e]),o=s.useCallback(r=>{var i,o;if(r.dead||(r.dead=!0,!n.pointerIsValid(r))||2===r.buttons)return;let a=n.pointerMove(r,e);1===r.buttons&&r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(i=t.onDragBoundsHandle)||i.call(t,a,r)),null==(o=t.onPointerMove)||o.call(t,a,r)},[n,t,e]);return{onPointerDown:r,onPointerUp:i,onPointerEnter:s.useCallback(r=>{var i;n.pointerIsValid(r)&&null!=(i=t.onHoverBoundsHandle)&&i.call(t,n.pointerEnter(r,e),r)},[n,t,e]),onPointerMove:o,onPointerLeave:s.useCallback(r=>{var i;n.pointerIsValid(r)&&null!=(i=t.onUnhoverBoundsHandle)&&i.call(t,n.pointerEnter(r,e),r)},[n,t,e])}}function eQ(e,t){return[(e[0]+t.point[0])*t.zoom,(e[1]+t.point[1])*t.zoom]}function e0(e,t=0){let n=s.useRef(null);return s.useLayoutEffect(()=>{let r=n.current,i=` translate( calc(${e.minX}px - var(--tl-padding)), calc(${e.minY}px - var(--tl-padding)) ) rotate(${t+(e.rotation||0)}rad)`;r.style.setProperty("transform",i),r.style.setProperty("width",`calc(${Math.floor(e.width)}px + (var(--tl-padding) * 2))`),r.style.setProperty("height",`calc(${Math.floor(e.height)}px + (var(--tl-padding) * 2))`)},[e,t]),n}var e1=s.memo(function(e){var{id:t,bounds:n,rotation:r=0,isGhost:i=!1,isSelected:o=!1,children:a}=e,u=eL(e,["id","bounds","rotation","isGhost","isSelected","children"]);let l=e0(n,r);return s.createElement("div",eN({id:t,ref:l,className:`tl-positioned${i?" tl-ghost":""}${o?" tl-positioned-selected":""}`,"aria-label":"container","data-testid":"container"},u),a)}),e2=s.memo(function({brush:e,zoom:t,dashed:n}){return s.createElement(e1,{bounds:e,rotation:0},s.createElement(e9,null,s.createElement("rect",{className:"tl-brush"+(n?" dashed":""),opacity:1,x:0,y:0,width:e.width,height:e.height,"aria-label":"brush"}),n&&s.createElement("g",{className:"tl-dashed-brush-line"},s.createElement(e3,{x1:0,y1:0,x2:e.width,y2:0,zoom:t}),s.createElement(e3,{x1:e.width,y1:0,x2:e.width,y2:e.height,zoom:t}),s.createElement(e3,{x1:0,y1:e.height,x2:e.width,y2:e.height,zoom:t}),s.createElement(e3,{x1:0,y1:0,x2:0,y2:e.height,zoom:t}))))});function e3({x1:e,y1:t,x2:n,y2:r,zoom:i}){let o=eY.getPerfectDashProps(Math.hypot(n-e,r-t),1/i,"dashed",1,!0,3);return s.createElement("line",{x1:e,y1:t,x2:n,y2:r,strokeWidth:1/i,strokeDasharray:o.strokeDasharray,strokeDashoffset:o.strokeDashoffset})}var e5=s.memo(function({points:e,zoom:t}){if(0===e.length)return null;let n=eY.getSvgPathFromStroke(function(e,t={}){return function(e,t={}){var n,r;let{size:i=16,smoothing:o=.5,thinning:a=.5,simulatePressure:s=!0,easing:u=e=>e,start:l={},end:c={},last:d=!1}=t,{cap:h=!0,easing:p=e=>e*(2-e)}=l,{cap:f=!0,easing:m=e=>--e*e*e+1}=c;if(0===e.length||i<=0)return[];let g=e[e.length-1].runningLength,v=!1===l.taper?0:!0===l.taper?Math.max(i,g):l.taper,y=!1===c.taper?0:!0===c.taper?Math.max(i,g):c.taper,b=Math.pow(i*o,2),w=[],k=[],x=e.slice(0,10).reduce((e,t)=>{let n=t.pressure;if(s){let r=eE(1,t.distance/i),o=eE(1,1-r);n=eE(1,e+.275*r*(o-e))}return(e+n)/2},e[0].pressure),_=eg(i,a,e[e.length-1].pressure,u),S,E=e[0].vector,D=e[0].point,C=D,j=D,O=C;for(let t=0;tb)&&(w.push(j),D=j),O=ev(r,f),(t<=1||ek(C,O)>b)&&(k.push(O),C=O),x=n,E=o}let T=e[0].point.slice(0,2),A=e.length>1?e[e.length-1].point.slice(0,2):ev(e[0].point,[1,1]),P=[],R=[];if(1===e.length){if(!(v||y)||d){let e=(n=ex(ew(ey(T,A))),ev(T,eb(n,-(S||_)))),t=[];for(let n=1/13,r=n;r<=1;r+=n)t.push(e_(e,T,2*eC*r));return t}}else{if(!(v||y&&1===e.length)){if(h)for(let e=1/13,t=e;t<=1;t+=e){let e=e_(k[0],T,eC*t);P.push(e)}else{let e=ey(w[0],k[0]),t=eb(e,.5),n=eb(e,.51);P.push(ey(T,t),ey(T,n),ev(T,n),ev(T,t))}}let t=ew([-(r=e[e.length-1].vector)[0],-r[1]]);if(y||v&&1===e.length)R.push(A);else if(f){let e=ev(A,eb(t,_));for(let t=1/29,n=t;n<1;n+=t)R.push(e_(e,A,3*eC*n))}else R.push(ev(A,eb(t,_)),ev(A,eb(t,.99*_)),ey(A,eb(t,.99*_)),ey(A,eb(t,_)))}return w.concat(R,k.reverse(),P)}(function(e,t={}){var n,r,i;let{streamline:o=.5,size:a=16,last:s=!1}=t;if(0===e.length)return[];let u=.15+(1-o)*.85,l=Array.isArray(e[0])?e:e.map(({x:e,y:t,pressure:n=.5})=>[e,t,n]);if(2===l.length){let e=l[1];l=l.slice(0,-1);for(let t=1;t<5;t++)l.push(eS(l[0],e,t/4))}1===l.length&&(l=[...l,[...ev(l[0],[1,1]),...l[0].slice(2)]]);let c=[{point:[l[0][0],l[0][1]],pressure:l[0][2]>=0?l[0][2]:.25,vector:[1,1],distance:0,runningLength:0}],d=!1,h=0,p=c[0],f=l.length-1;for(let e=1;e=0?l[e][2]:.5,vector:ex(ey(p.point,t)),distance:n,runningLength:h},c.push(p)}return c[0].vector=(null==(n=c[1])?void 0:n.vector)||[0,0],c}(e,t),t)}(e,{size:16/t,start:{taper:!0}}));return s.createElement("path",{d:n,className:"tl-erase-line"})}),e4=[[-1,.15,64],[.05,.375,16],[.15,1,4],[.7,2.5,1]];function e6({grid:e,camera:t}){return s.createElement("svg",{className:"tl-grid",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s.createElement("defs",null,e4.map(([n,r,i],o)=>{let a=i*e*t.zoom,u=t.point[0]*t.zoom,l=t.point[1]*t.zoom,c=u>0?u%a:a+u%a,d=l>0?l%a:a+l%a,h=t.zooms.createElement("rect",{key:`grid-rect-${t}`,width:"100%",height:"100%",fill:`url(#grid-${t})`})))}var e8=s.memo(function({camera:{zoom:e,point:t},children:n}){let r=2.5/e;return s.createElement("svg",{className:"tl-overlay"},s.createElement("defs",null,s.createElement("g",{id:"tl-snap-point"},s.createElement("path",{className:"tl-snap-point",d:`M ${-r},${-r} L ${r},${r} M ${-r},${r} L ${r},${-r}`}))),s.createElement("g",{transform:`scale(${e}) translate(${t})`},n))}),e9=s.memo(s.forwardRef(function(e,t){var{id:n,className:r="",children:i,shapeStyle:o}=e,a=eL(e,["id","className","children","shapeStyle"]);let u=o?{"data-color":o.color,"data-fill":o.isFilled}:{};return s.createElement("svg",eN({ref:t,className:`tl-positioned-svg ${r}`},a),s.createElement("g",eN({id:n,className:"tl-centered-g"},u),i))})),e7=s.memo(function({bounds:e,isLocked:t,isHidden:n}){return s.createElement("rect",{className:["tl-bounds-center",t?"tl-dashed":""].join(" "),x:-1,y:-1,width:e.width+2,height:e.height+2,opacity:n?0:1,pointerEvents:"none","aria-label":"center handle"})}),te={right:0,bottomRight:45,bottom:90,bottomLeft:135,left:180,topLeft:225,top:270,topRight:315},tt=s.memo(function({bounds:e,side:t,targetSize:n,size:r}){let i=2*n,o={left:-i,topLeft:-i,bottomLeft:-i,right:e.width,topRight:e.width,bottomRight:e.width,top:e.width/2-i/2,bottom:e.width/2-i/2}[t],a={left:e.height/2-i/2,right:e.height/2-i/2,top:-(2*i),topLeft:-i,topRight:-i,bottom:e.height,bottomLeft:e.height,bottomRight:e.height}[t],{callbacks:u,inputs:l}=eU(),c=s.useCallback(e=>{var n;e.stopPropagation();let r=l.pointerDown(e,t);null==(n=u.onShapeClone)||n.call(u,r,e)},[u.onShapeClone]);return s.createElement("g",{className:"tl-clone-target",transform:`translate(${o}, ${a})`,"aria-label":"clone button"},s.createElement("rect",{className:"tl-transparent",width:2*n,height:2*n}),s.createElement("g",{className:"tl-clone-button-target",onPointerDown:c,transform:`translate(${n}, ${n}) rotate(${te[t]})`},s.createElement("circle",{className:"tl-transparent ",r:n}),s.createElement("path",{className:"tl-clone-button",d:`M -${r/2},-${r/2} L ${r/2},0 -${r/2},${r/2} Z`,strokeLinejoin:"round"})))}),tn=s.memo(function({targetSize:e,size:t,bounds:n}){return s.createElement(s.Fragment,null,s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"top"}),s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"right"}),s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"bottom"}),s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"left"}),s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"topLeft"}),s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"topRight"}),s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"bottomLeft"}),s.createElement(tt,{targetSize:e,size:t,bounds:n,side:"bottomRight"}))}),tr={top_left_corner:"tl-cursor-nwse",top_right_corner:"tl-cursor-nesw",bottom_right_corner:"tl-cursor-nwse",bottom_left_corner:"tl-cursor-nesw"},ti=s.memo(function({size:e,targetSize:t,isHidden:n,corner:r,bounds:i}){let o=eX(r),a="top_left_corner"===r||"top_right_corner"===r,u="top_left_corner"===r||"bottom_left_corner"===r;return s.createElement("g",{opacity:n?0:1},s.createElement("rect",eN({className:"tl-transparent "+(n?"":tr[r]),"aria-label":"corner transparent",x:(u?-1:i.width+1)-t,y:(a?-1:i.height+1)-t,width:2*t,height:2*t,pointerEvents:n?"none":"all"},o)),s.createElement("rect",{className:"tl-corner-handle","aria-label":"corner handle",x:(u?-1:i.width+1)-e/2,y:(a?-1:i.height+1)-e/2,width:e,height:e,pointerEvents:"none"}))}),to={top_edge:"tl-cursor-ns",right_edge:"tl-cursor-ew",bottom_edge:"tl-cursor-ns",left_edge:"tl-cursor-ew"},ta=s.memo(function({size:e,isHidden:t,bounds:n,edge:r}){let i=eX(r),o="top_edge"===r||"bottom_edge"===r,a="right_edge"===r||"bottom_edge"===r,{height:u,width:l}=n;return s.createElement("rect",eN({pointerEvents:t?"none":"all",className:"tl-transparent tl-edge-handle "+(t?"":to[r]),"aria-label":`${r} handle`,opacity:t?0:1,x:o?e/2:(a?l+1:-1)-e/2,y:o?(a?u+1:-1)-e/2:e/2,width:o?Math.max(0,l+1-e):e,height:o?e:Math.max(0,u+1-e)},i))}),ts=s.memo(function({size:e,bounds:t,isHidden:n}){let r=eX("left"),i=eX("center"),o=eX("right");return s.createElement("g",{cursor:"grab",transform:`translate(${t.width/2-4*e}, ${t.height+2*e})`,"aria-label":"link handle"},s.createElement("g",{className:"tl-transparent",pointerEvents:n?"none":"all"},s.createElement("rect",eN({x:0,y:0,width:2*e,height:2*e},r)),s.createElement("rect",eN({x:3*e,y:0,width:2*e,height:2*e},i)),s.createElement("rect",eN({x:6*e,y:0,width:2*e,height:2*e},o))),s.createElement("g",{className:"tl-rotate-handle",transform:`translate(${e/2}, ${e/2})`,"aria-label":"link rotate handle"},s.createElement("path",{d:`M 0,${e/2} L ${e},${e} ${e},0 Z`,pointerEvents:"none",opacity:n?0:1}),s.createElement("path",{transform:`translate(${3*e}, 0)`,d:`M 0,0 L ${e},0 ${e/2},${e} Z`,pointerEvents:"none",opacity:n?0:1}),s.createElement("path",{transform:`translate(${6*e}, 0)`,d:`M ${e},${e/2} L 0,0 0,${e} Z`,pointerEvents:"none",opacity:n?0:1})))}),tu=s.memo(function({bounds:e,targetSize:t,size:n,isHidden:r}){let i=eX("rotate");return s.createElement("g",{cursor:"grab",opacity:r?0:1},s.createElement("circle",eN({className:"tl-transparent","aria-label":"rotate handle transparent",cx:e.width/2,cy:-2*n,r:t,pointerEvents:r?"none":"all"},i)),s.createElement("circle",{className:"tl-rotate-handle","aria-label":"rotate handle",cx:e.width/2,cy:-2*n,r:n/2,pointerEvents:"none"}))}),tl=s.memo(function({zoom:e,bounds:t,viewportWidth:n,rotation:r,isHidden:i,isLocked:o,hideCloneHandles:a,hideResizeHandles:u,hideRotateHandle:l,hideBindingHandles:c}){let d=(n<768?16:8)/e,h=8/e,p=Math.min(t.width,t.height)*e,f=!l&&!i&&!o&&p>32,m=!i&&!o&&p>24,g=!i&&!o&&p>20;return s.createElement(e1,{bounds:t,rotation:r},s.createElement(e9,null,s.createElement(e7,{bounds:t,isLocked:o,isHidden:i}),u||o?null:s.createElement(s.Fragment,null,s.createElement(ta,{targetSize:d,size:h,bounds:t,edge:"top_edge",isHidden:!m}),s.createElement(ta,{targetSize:d,size:h,bounds:t,edge:"right_edge",isHidden:!m}),s.createElement(ta,{targetSize:d,size:h,bounds:t,edge:"bottom_edge",isHidden:!m}),s.createElement(ta,{targetSize:d,size:h,bounds:t,edge:"left_edge",isHidden:!m}),s.createElement(ti,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"top_left_corner"}),s.createElement(ti,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"top_right_corner"}),s.createElement(ti,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"bottom_right_corner"}),s.createElement(ti,{targetSize:d,size:h,bounds:t,isHidden:i||!g,corner:"bottom_left_corner"})),f&&s.createElement(tu,{targetSize:d,size:h,bounds:t,isHidden:!m}),!a&&p>24&&s.createElement(tn,{bounds:t,targetSize:d,size:h}),!c&&s.createElement(ts,{targetSize:d,size:h,bounds:t,isHidden:!m})))}),tc=s.memo(function({bounds:e,rotation:t,isHidden:n}){let r=function(){let{callbacks:e,inputs:t}=eU();return s.useMemo(()=>({onPointerDown:n=>{var r,i,o,a;if(n.dead||(n.dead=!0,!t.pointerIsValid(n)))return;if(2===n.button){null==(r=e.onRightPointBounds)||r.call(e,t.pointerDown(n,"bounds"),n);return}let s=t.pointerDown(n,"bounds");null==(i=n.currentTarget)||i.setPointerCapture(n.pointerId),0===n.button&&(null==(o=e.onPointBounds)||o.call(e,s,n)),null==(a=e.onPointerDown)||a.call(e,s,n)},onPointerUp:n=>{var r,i,o,a;if(n.dead||(n.dead=!0,2===n.button)||(t.activePointer=void 0,!t.pointerIsValid(n)))return;let s=t.isDoubleClick(),u=t.pointerUp(n,"bounds");n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=n.currentTarget)||r.releasePointerCapture(n.pointerId)),0===n.button&&(s&&!(u.altKey||u.metaKey)&&(null==(i=e.onDoubleClickBounds)||i.call(e,u,n)),null==(o=e.onReleaseBounds)||o.call(e,u,n)),null==(a=e.onPointerUp)||a.call(e,u,n)},onPointerMove:n=>{var r,i;if(n.dead||(n.dead=!0,!t.pointerIsValid(n)))return;1===n.buttons&&n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=e.onDragBounds)||r.call(e,t.pointerMove(n,"bounds"),n));let o=t.pointerMove(n,"bounds");null==(i=e.onPointerMove)||i.call(e,o,n)},onPointerEnter:n=>{var r;t.pointerIsValid(n)&&null!=(r=e.onHoverBounds)&&r.call(e,t.pointerEnter(n,"bounds"),n)},onPointerLeave:n=>{var r;t.pointerIsValid(n)&&null!=(r=e.onUnhoverBounds)&&r.call(e,t.pointerEnter(n,"bounds"),n)}}),[t,e])}();return s.createElement(e1,{bounds:e,rotation:t},s.createElement(e9,null,s.createElement("rect",eN({className:"tl-bounds-bg","aria-label":"bounds bg",width:e.width,height:e.height,opacity:n?0:1},r))))}),td=s.memo(function({id:e,point:t}){let n=function(e){let{inputs:t,callbacks:n}=eU();return s.useMemo(()=>({onPointerDown:r=>{var i,o,a;if(r.dead||(r.dead=!0,!t.pointerIsValid(r))||2===r.button)return;null==(i=r.currentTarget)||i.setPointerCapture(r.pointerId);let s=t.pointerDown(r,e);0===r.button&&(null==(o=n.onPointHandle)||o.call(n,s,r)),null==(a=n.onPointerDown)||a.call(n,s,r)},onPointerUp:r=>{var i,o,a,s;if(r.dead||(r.dead=!0,!t.pointerIsValid(r))||2===r.button)return;let u=t.isDoubleClick(),l=t.pointerUp(r,e);r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(i=r.currentTarget)||i.releasePointerCapture(r.pointerId),0===r.button&&(u&&!(l.altKey||l.metaKey)&&(null==(o=n.onDoubleClickHandle)||o.call(n,l,r)),null==(a=n.onReleaseHandle)||a.call(n,l,r))),null==(s=n.onPointerUp)||s.call(n,l,r)},onPointerMove:r=>{var i,o;if(r.dead||(r.dead=!0,!t.pointerIsValid(r))||2===r.buttons)return;let a=t.pointerMove(r,e);1===r.buttons&&r.currentTarget.hasPointerCapture(r.pointerId)&&(null==(i=n.onDragHandle)||i.call(n,a,r)),null==(o=n.onPointerMove)||o.call(n,a,r)},onPointerEnter:r=>{var i;if(!t.pointerIsValid(r))return;let o=t.pointerEnter(r,e);null==(i=n.onHoverHandle)||i.call(n,o,r)},onPointerLeave:r=>{var i;if(!t.pointerIsValid(r))return;let o=t.pointerEnter(r,e);null==(i=n.onUnhoverHandle)||i.call(n,o,r)}}),[t,n,e])}(e);return s.createElement(e1,{bounds:eY.translateBounds({minX:0,minY:0,maxX:0,maxY:0,width:0,height:0},t)},s.createElement(e9,null,s.createElement("g",eN({className:"tl-handle","aria-label":"handle"},n),s.createElement("circle",{className:"tl-handle-bg",pointerEvents:"all"}),s.createElement("circle",{className:"tl-counter-scaled tl-handle",pointerEvents:"none",r:4}))))}),th=s.memo(function({shape:e,zoom:t}){if(void 0===e.handles)return null;let n=null,r=Object.values(e.handles).reduce((r,i)=>{let o=u.B.add(i.point,e.point);return(!n||u.B.dist(o,n)*t>=32)&&(r.push(i),n=o),r},[]);return 1===r.length?null:s.createElement(s.Fragment,null,r.map(t=>s.createElement(td,{key:e.id+"_"+t.id,id:t.id,point:u.B.add(t.point,e.point)})))}),tp=s.memo(function(e){let t=e.utils.getRef(e.shape);return s.createElement(e.utils.Component,eN({ref:t},e))},(e,t)=>e.isHovered===t.isHovered&&e.isSelected===t.isSelected&&e.isEditing===t.isEditing&&e.isBinding===t.isBinding&&e.isGhost===t.isGhost&&e.meta===t.meta&&(t.shape===e.shape||!t.utils.shouldRender(t.shape,e.shape))),tf=s.memo(function(e){var{shape:t,utils:n,meta:r}=e,i=eL(e,["shape","utils","meta"]);let{callbacks:o}=eU(),a=n.getBounds(t),u=function(e){let{rPageState:t,rSelectionBounds:n,callbacks:r,inputs:i}=s.useContext(ez);return s.useMemo(()=>({onPointerDown:o=>{var a,s,u,l,c,d,h;if(o.dead||(o.dead=!0,!i.pointerIsValid(o)))return;if(2===o.button){null==(a=r.onRightPointShape)||a.call(r,i.pointerDown(o,e),o);return}let p=i.pointerDown(o,e);if(null==(s=o.currentTarget)||s.setPointerCapture(o.pointerId),n.current&&eY.pointInBounds(p.point,n.current)&&!t.current.selectedIds.includes(e)){0===o.button&&(null==(u=r.onPointBounds)||u.call(r,i.pointerDown(o,"bounds"),o),null==(l=r.onPointShape)||l.call(r,p,o)),null==(c=r.onPointerDown)||c.call(r,p,o);return}0===o.button&&(null==(d=r.onPointShape)||d.call(r,p,o)),null==(h=r.onPointerDown)||h.call(r,p,o)},onPointerUp:t=>{var n,o,a,s;if(t.dead||(t.dead=!0,!i.pointerIsValid(t))||2===t.button)return;i.activePointer=void 0;let u=i.isDoubleClick(),l=i.pointerUp(t,e);t.pointerId&&t.currentTarget.hasPointerCapture(t.pointerId)&&(null==(n=t.currentTarget)||n.releasePointerCapture(t.pointerId)),0===t.button&&(u&&!(l.altKey||l.metaKey)&&(null==(o=r.onDoubleClickShape)||o.call(r,l,t)),null==(a=r.onReleaseShape)||a.call(r,l,t)),null==(s=r.onPointerUp)||s.call(r,l,t)},onPointerMove:t=>{var n,o;if(t.dead||(t.dead=!0,2===t.buttons||!i.pointerIsValid(t)||i.pointer&&t.pointerId!==i.pointer.pointerId))return;let a=i.pointerMove(t,e);1===t.buttons&&t.currentTarget.hasPointerCapture(t.pointerId)&&(null==(n=r.onDragShape)||n.call(r,a,t)),null==(o=r.onPointerMove)||o.call(r,a,t)},onPointerEnter:t=>{var n;if(!i.pointerIsValid(t))return;let o=i.pointerEnter(t,e);null==(n=r.onHoverShape)||n.call(r,o,t)},onPointerLeave:t=>{var n;if(!i.pointerIsValid(t))return;let o=i.pointerEnter(t,e);null==(n=r.onUnhoverShape)||n.call(r,o,t)}}),[i,r,e])}(t.id);return s.createElement(e1,{id:t.id,bounds:a,rotation:t.rotation,"data-shape":t.type,isGhost:i.isGhost,isSelected:i.isSelected},s.createElement(tp,eN({shape:t,utils:n,meta:r,events:u,bounds:a,onShapeChange:o.onShapeChange,onShapeBlur:o.onShapeBlur},i)))}),tm=s.memo(function(e){var{shape:t,utils:n,meta:r,children:i}=e,o=eL(e,["shape","utils","meta","children"]);return s.createElement(s.Fragment,null,s.createElement(tf,eN({shape:t,utils:n[t.type],meta:r},o)),i&&i.map(e=>s.createElement(tm,eN({key:e.shape.id,utils:n},e))))}),tg=s.memo(function({isHovered:e=!1,isSelected:t=!1,isEditing:n=!1,shape:r,user:i,meta:o}){let{shapeUtils:a}=eU(),u=a[r.type],l=u.getBounds(r),c=e0(l,r.rotation);return s.createElement("div",{ref:c,draggable:!1,className:["tl-indicator","tl-absolute",t&&!i?"tl-selected":"tl-hovered",n?"tl-editing":"",r.isLocked?"tl-locked":""].join(" ")},s.createElement("svg",{width:"100%",height:"100%"},s.createElement("g",{className:"tl-centered-g",stroke:null==i?void 0:i.color},s.createElement(u.Indicator,{shape:r,meta:o,user:i,bounds:l,isSelected:t,isHovered:e}))))}),tv=s.memo(function({page:e,pageState:t,assets:n,hideBounds:r,hideHandles:i,hideIndicators:o,hideBindingHandles:a,hideCloneHandles:l,hideRotateHandle:c,hideResizeHandles:d,meta:h}){let{bounds:p,shapeUtils:f}=eU(),m=function(e,t,n,r){let{callbacks:i,shapeUtils:o,bounds:a}=eU(),l=s.useRef(),c=s.useRef(-1),d=s.useRef(new Set),h=s.useRef(new Set),{selectedIds:p,camera:f}=t,[m,g]=u.B.sub(u.B.div([0,0],f.zoom),f.point),[v,y]=u.B.sub(u.B.div([a.width,a.height],f.zoom),f.point),b={minX:m,minY:g,maxX:v,maxY:y,height:v-m,width:y-g},w=h.current,k=d.current;w.clear(),k.clear(),Object.values(e.shapes).filter(e=>{var t;return o[e.type].isStateful||p.includes(e.id)||(t=o[e.type].getBounds(e),eY.boundsContain(b,t)||eY.boundsCollide(b,t))}).forEach(t=>{if(t.parentId===e.id){k.add(t.id),w.add(t);return}let n=e.shapes[t.parentId];if(void 0===n)throw Error(`A shape (${t.id}) has a parent (${t.parentId}) that does not exist!`);k.add(n.id),w.add(n)}),w.size!==c.current&&(l.current&&clearTimeout(l.current),l.current=requestAnimationFrame(()=>{var e;null==(e=i.onRenderCountChange)||e.call(i,Array.from(k.values()))}),c.current=w.size);let x=t.bindingId?e.bindings[t.bindingId].toId:void 0,_=[];return w.forEach(i=>{if(void 0===i)throw Error("Rendered shapes included a missing shape");(function e(t,n,r,i,o,a=!1,s=!1,u){let l={shape:t,asset:t.assetId?o[t.assetId]:void 0,meta:u,isChildOfSelected:s,isGhost:t.isGhost||a,isEditing:i.editingId===t.id,isBinding:i.bindingTargetId===t.id,isSelected:i.selectedIds.includes(t.id),isHovered:i.hoveredId===t.id||void 0!==t.children&&(i.hoveredId&&t.children.includes(i.hoveredId)||t.children.some(e=>i.selectedIds.includes(e)))};n.push(l),t.children&&(l.children=[],t.children.map(e=>r[e]).filter(e=>r[e.id]).sort((e,t)=>e.childIndex-t.childIndex).forEach(t=>e(t,l.children,r,i,o,l.isGhost,l.isSelected||l.isChildOfSelected,u)))})(i,_,e.shapes,eI(eN({},t),{bindingTargetId:x}),n,i.isGhost,!1,r)}),_.sort((e,t)=>e.shape.childIndex-t.shape.childIndex),_}(e,t,n,h),{bounds:g,isLinked:v,isLocked:y,rotation:b}=function(e,t,n){let{rSelectionBounds:r}=eU(),{selectedIds:i}=t,o=s.useRef(),a,u=0,l=!1,c=!1;if(1===i.length){let t=i[0],r=e.shapes[t];if(!r)throw Error(`selectedIds is set to the id of a shape that doesn't exist: ${t}`);u=r.rotation||0,l=r.isLocked||!1;let o=n[r.type];a=o.hideBounds?void 0:o.getBounds(r)}else if(i.length>1){let t=i.map(t=>e.shapes[t]);u=0,l=t.every(e=>e.isLocked),a=t.reduce((e,t,r)=>0===r?n[t.type].getRotatedBounds(t):eY.getExpandedBounds(e,n[t.type].getRotatedBounds(t)),{})}if(a){let[n,o]=eQ([a.minX,a.minY],t.camera),[s,u]=eQ([a.maxX,a.maxY],t.camera);c=!!Object.values(e.bindings).find(e=>i.includes(e.toId)||i.includes(e.fromId)),r.current={minX:n,minY:o,maxX:s,maxY:u,width:s-n,height:u-o}}else r.current=null;let d=o.current;return d&&a?a&&d.minX===a.minX&&d.minY===a.minY&&d.maxX===a.maxX&&d.maxY===a.maxY&&(a=o.current):o.current=a,{bounds:a,rotation:u,isLocked:l,isLinked:c}}(e,t,f),{selectedIds:w,hoveredId:k,editingId:x,camera:{zoom:_}}=t,S=o,E=!0,D=!1,C,j=w.map(t=>e.shapes[t]);if(1===j.length){let e=j[0];(D=x===e.id)&&(S=!0);let t=f[e.type];E=l||!t.showCloneHandles,void 0===e.handles||D||(C=e)}return s.createElement(s.Fragment,null,g&&s.createElement(tc,{bounds:g,rotation:b,isHidden:r}),m.map(e=>s.createElement(tm,eN({key:e.shape.id,utils:f},e))),!S&&j.map(e=>s.createElement(tg,{key:"selected_"+e.id,shape:e,meta:h,isSelected:!0,isEditing:D})),!S&&k&&k!==x&&s.createElement(tg,{key:"hovered_"+k,shape:e.shapes[k],meta:h,isHovered:!0}),g&&s.createElement(tl,{zoom:_,bounds:g,viewportWidth:p.width,isLocked:y,rotation:b,isHidden:r,hideRotateHandle:c,hideResizeHandles:d,hideBindingHandles:a||!v,hideCloneHandles:E}),!i&&C&&s.createElement(th,{shape:C,zoom:_}))}),ty=s.memo(function({snapLine:e}){let t=eY.getBoundsFromPoints(e);return s.createElement(s.Fragment,null,s.createElement("line",{className:"tl-snap-line",x1:t.minX,y1:t.minY,x2:t.maxX,y2:t.maxY}),e.map(([e,t],n)=>s.createElement("use",{key:n,href:"#tl-snap-point",x:e,y:t})))}),tb=s.memo(function({snapLines:e}){return s.createElement(s.Fragment,null,e.map((e,t)=>s.createElement(ty,{key:t,snapLine:e})))});function tw({user:e}){let t=s.useRef(null);return s.useLayoutEffect(()=>{t.current&&(t.current.style.transform=`translate(${e.point[0]}px, ${e.point[1]}px)`)},[e.point]),s.createElement("svg",{ref:t,className:`tl-absolute tl-user tl-counter-scaled ${e.session?"":"tl-animated"}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35 35",fill:"none",fillRule:"evenodd"},s.createElement("g",{fill:"rgba(0,0,0,.2)",transform:"translate(1,1)"},s.createElement("path",{d:"m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z"}),s.createElement("path",{d:"m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z"})),s.createElement("g",{fill:"white"},s.createElement("path",{d:"m12 24.4219v-16.015l11.591 11.619h-6.781l-.411.124z"}),s.createElement("path",{d:"m21.0845 25.0962-3.605 1.535-4.682-11.089 3.686-1.553z"})),s.createElement("g",{fill:e.color},s.createElement("path",{d:"m19.751 24.4155-1.844.774-3.1-7.374 1.841-.775z"}),s.createElement("path",{d:"m13 10.814v11.188l2.969-2.866.428-.139h4.768z"})))}function tk({userId:e,users:t}){return s.createElement(s.Fragment,null,Object.values(t).filter(t=>t&&t.id!==e).map(e=>s.createElement(tw,{key:e.id,user:e})))}function tx({userId:e,users:t,meta:n,page:r}){let{shapeUtils:i}=eU();return s.createElement(s.Fragment,null,Object.values(t).filter(Boolean).filter(t=>t.id!==e&&t.selectedIds.length>0).map(e=>{let t=e.selectedIds.map(e=>r.shapes[e]).filter(Boolean);if(0===t.length)return null;let o=eY.getCommonBounds(t.map(e=>i[e.type].getBounds(e)));return s.createElement(s.Fragment,{key:e.id+"_shapes"},s.createElement("div",{className:"tl-absolute tl-user-indicator-bounds",style:{backgroundColor:e.color+"0d",borderColor:e.color+"78",transform:`translate(${o.minX}px, ${o.minY}px)`,width:o.width,height:o.height,pointerEvents:"none"}}),t.map(t=>s.createElement(tg,{key:`${e.id}_${t.id}_indicator`,shape:t,user:e,meta:n,isHovered:!0})))}))}var t_=e=>{let t=e.parentElement;for(;t&&t!==document.body;){let{overflowY:e}=window.getComputedStyle(t);if(t.scrollHeight>t.clientHeight&&("auto"===e||"scroll"===e||"overlay"===e))return t;t=t.parentElement}return document},tS=s.memo(function({id:e,page:t,pageState:n,assets:r,snapLines:i,eraseLine:o,grid:a,users:l,userId:c,meta:d,performanceMode:h,externalContainerRef:p,showDashedBrush:f,hideHandles:m,hideBounds:g,hideIndicators:v,hideBindingHandles:y,hideCloneHandles:b,hideResizeHandles:w,hideRotateHandle:k,hideGrid:x,onBoundsChange:_}){let S,E,D=s.useRef(null),C=s.useRef(n.camera.zoom);C.current=n.camera.zoom,function(e,t){var n,r;let i=s.useRef(void 0),o=s.useRef(void 0),a=s.useRef([0,0]),{inputs:l,bounds:c,callbacks:d}=eU();s.useEffect(()=>{let e=e=>e.preventDefault();return document.addEventListener("gesturestart",e),document.addEventListener("gesturechange",e),()=>{document.removeEventListener("gesturestart",e),document.removeEventListener("gesturechange",e)}},[]),n={onWheel:s.useCallback(({event:e})=>{var t,n,r,i;if(e.preventDefault(),l.isPinching)return;let[o,a,s]=function(e){let{deltaY:t,deltaX:n}=e,r=0;if(e.ctrlKey||e.metaKey){let n=Math.sign(e.deltaY),i=Math.abs(e.deltaY),o=t;i>10&&(o=10*n),r=o}return[n,t,r]}(e);if((e.altKey||e.ctrlKey||e.metaKey)&&0===e.buttons){let i=[...null!=(n=null==(t=l.pointer)?void 0:t.point)?n:[c.width/2,c.height/2],.618*s],o=l.pan(i,e);null==(r=d.onZoom)||r.call(d,eI(eN({},o),{delta:i}),e);return}let h=u.B.mul(e.shiftKey&&!eY.isDarwin?[a,0]:[o,a],.5);if(u.B.isEqual(h,[0,0]))return;let p=l.pan(h,e);null==(i=d.onPan)||i.call(d,p,e)},[d,l,c]),onPinchStart:s.useCallback(({origin:e,event:n})=>{var r;if(n instanceof WheelEvent)return;let s=t.current;if(!s||!(n.target===s||s.contains(n.target)))return;let u=l.pinch(e,e);l.isPinching=!0,null==(r=d.onPinchStart)||r.call(d,u,n),o.current=u.point,i.current=u.origin,a.current=[0,0]},[d,l,c]),onPinch:s.useCallback(({origin:e,offset:n,event:r})=>{var s;if(r instanceof WheelEvent)return;let c=t.current;if(!(r.target===c||(null==c?void 0:c.contains(r.target)))||!i.current)return;let h=l.pinch(e,i.current),p=u.B.sub(h.delta,a.current);a.current=h.delta,null==(s=d.onPinch)||s.call(d,eI(eN({},h),{point:h.point,origin:i.current,delta:[...p,n[0]]}),r),o.current=e},[d,l,c]),onPinchEnd:s.useCallback(({origin:e,event:n})=>{var r;let s=t.current;if(!(n.target===s||(null==s?void 0:s.contains(n.target))))return;let u=l.pinch(e,e);l.isPinching=!1,null==(r=d.onPinchEnd)||r.call(d,u,n),o.current=void 0,i.current=void 0,a.current=[0,0]},[])},r={target:t,eventOptions:{passive:!1},pinch:{from:[e.current,0],scaleBounds:()=>({from:e.current,max:5,min:.1})}},([ee,er,ei,eo,en,et].forEach(Q),function(e,t){let{handlers:n,nativeHandlers:r,config:i}=function(e,t){let[n,r,i]=function(e){let t={},n={},r=new Set;for(let i in e)ef.test(i)?(r.add(RegExp.lastMatch),n[i]=e[i]):t[i]=e[i];return[n,t,r]}(e),o={};return em(i,n,"onDrag","drag",o,t),em(i,n,"onWheel","wheel",o,t),em(i,n,"onScroll","scroll",o,t),em(i,n,"onPinch","pinch",o,t),em(i,n,"onMove","move",o,t),em(i,n,"onHover","hover",o,t),{handlers:o,config:t,nativeHandlers:r}}(e,t||{});return function(e,t={},n,r){let i=s.useMemo(()=>new ed(e),[]);if(i.applyHandlers(e,r),i.applyConfig(t,n),s.useEffect(i.effect.bind(i)),s.useEffect(()=>i.clean.bind(i),[]),void 0===t.target)return i.bind.bind(i)}(n,i,void 0,r)})(n,r||{})}(C,p||D),function(e,t){let{inputs:n,callbacks:r}=eU(),i=s.useRef(!1),o=s.useCallback(()=>{var o,a;if(i.current){let i=null==(o=e.current)?void 0:o.getBoundingClientRect();if(i){let e={minX:i.left,maxX:i.left+i.width,minY:i.top,maxY:i.top+i.height,width:i.width,height:i.height};n.bounds=e,t(e),null==(a=r.onBoundsChange)||a.call(r,e)}}else i.current=!0},[e,n,r.onBoundsChange]);s.useEffect(()=>{let t=e.current?t_(e.current):document,n=eY.debounce(o,100);return t.addEventListener("scroll",n),window.addEventListener("resize",n),()=>{t.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[]),s.useEffect(()=>{let t=new ResizeObserver(e=>{n.isPinching||e[0].contentRect&&o()});return e.current&&t.observe(e.current),()=>{t.disconnect()}},[e,n]),s.useEffect(()=>{o()},[e])}(D,_),function(){let{callbacks:e}=eU();(0,s.useEffect)(()=>{function t(){var t;null==(t=e.onShapeBlur)||t.call(e)}return eY.isMobileSafari()?(document.addEventListener("focusout",t),()=>document.removeEventListener("focusout",t)):()=>null},[e])}(),function(e){let{bounds:t}=eU();s.useEffect(()=>{let n=e=>{e.preventDefault()},r=e=>{let n=e.touches[0].pageX,r=e.touches[0].radiusX||0;(n-r<10||n+r>t.width-10)&&e.preventDefault()},i=e.current;return i?(i.addEventListener("gestureend",n),i.addEventListener("gesturechange",n),i.addEventListener("gesturestart",n),i.addEventListener("touchstart",r),()=>{i&&(i.removeEventListener("gestureend",n),i.removeEventListener("gesturechange",n),i.removeEventListener("gesturestart",n),i.removeEventListener("touchstart",r))}):()=>{}},[e,t.width])}(D);let j=s.useRef(null),O=s.useRef(null);S=s.useRef(),E=s.useRef(),s.useLayoutEffect(()=>{let{zoom:e,point:t}=n.camera,r=e!==S.current,i=t!==E.current;if(S.current=e,E.current=t,r||i){let n=O.current;if(j&&"current"in j){let i=j.current;r&&i&&i.style.setProperty("--tl-zoom",e.toString()),n&&n.style.setProperty("transform",`scale(${e}) translateX(${t[0]}px) translateY(${t[1]}px)`)}}},[n.camera.zoom,n.camera.point]),s.useLayoutEffect(()=>{if(j&&"current"in j){let e=null==j?void 0:j.current;if(e)switch(h){case"transform_selected":e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","transform, contents");break;case"transform_all":e.style.setProperty("--tl-performance-all","transform, contents"),e.style.setProperty("--tl-performance-selected","transform, contents");break;case"translate_selected":e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","transform");break;case"translate_all":e.style.setProperty("--tl-performance-all","transform"),e.style.setProperty("--tl-performance-selected","transform");break;default:e.style.setProperty("--tl-performance-all","auto"),e.style.setProperty("--tl-performance-selected","auto")}}},[h]),function(){let{inputs:e,callbacks:t}=eU();s.useEffect(()=>{let n=n=>{var r;null==(r=t.onKeyDown)||r.call(t,n.key,e.keydown(n),n)},r=n=>{var r;e.keyup(n),null==(r=t.onKeyUp)||r.call(t,n.key,e.keyup(n),n)};return window.addEventListener("keydown",n),window.addEventListener("keyup",r),()=>{window.removeEventListener("keydown",n),window.removeEventListener("keyup",r)}},[e,t])}();let T=function(){let{callbacks:e,inputs:t}=eU();return s.useMemo(()=>({onPointerDown:n=>{var r,i;if(n.dead||(n.dead=!0,!t.pointerIsValid(n))||2===n.button)return;n.currentTarget.setPointerCapture(n.pointerId);let o=t.pointerDown(n,"canvas");0===n.button&&(null==(r=e.onPointCanvas)||r.call(e,o,n)),null==(i=e.onPointerDown)||i.call(e,o,n)},onPointerMove:n=>{var r,i;if(n.dead||(n.dead=!0,!t.pointerIsValid(n)))return;let o=t.pointerMove(n,"canvas");1===n.buttons&&n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=e.onDragCanvas)||r.call(e,o,n)),null==(i=e.onPointerMove)||i.call(e,o,n)},onPointerUp:n=>{var r,i,o,a;if(n.dead||(n.dead=!0,t.activePointer=void 0,!t.pointerIsValid(n))||2===n.button)return;let s=t.pointerUp(n,"canvas"),u=t.isDoubleClick();n.currentTarget.hasPointerCapture(n.pointerId)&&(null==(r=n.currentTarget)||r.releasePointerCapture(n.pointerId)),0===n.button&&(u&&!(s.altKey||s.metaKey)&&(null==(i=e.onDoubleClickCanvas)||i.call(e,s,n)),null==(o=e.onReleaseCanvas)||o.call(e,s,n)),null==(a=e.onPointerUp)||a.call(e,s,n)},onDrop:e.onDrop,onDragOver:e.onDragOver}),[e,t])}();return s.createElement("div",{id:e,className:"tl-container",ref:j},s.createElement("div",eN({id:"canvas",className:"tl-absolute tl-canvas",ref:D},T),!x&&a&&s.createElement(e6,{grid:a,camera:n.camera}),s.createElement("div",{ref:O,className:"tl-absolute tl-layer","data-testid":"layer"},s.createElement(tv,{page:t,pageState:n,assets:r,hideBounds:g,hideIndicators:v,hideHandles:m,hideBindingHandles:y,hideCloneHandles:b,hideResizeHandles:w,hideRotateHandle:k,meta:d}),l&&c&&s.createElement(tx,{userId:c,users:l,page:t,meta:d}),n.brush&&s.createElement(e2,{brush:n.brush,dashed:f,zoom:n.camera.zoom}),l&&s.createElement(tk,{userId:c,users:l})),s.createElement(e8,{camera:n.camera},o&&s.createElement(e5,{points:o,zoom:n.camera.zoom}),i&&s.createElement(tb,{snapLines:i}))))}),tE=class{constructor(){eB(this,"pointer"),eB(this,"keyboard"),eB(this,"keys",{}),eB(this,"isPinching",!1),eB(this,"bounds",{minX:0,maxX:640,minY:0,maxY:480,width:640,height:480}),eB(this,"pointerUpTime",0),eB(this,"activePointer"),eB(this,"panStart",e=>{var t,n;let{shiftKey:r,ctrlKey:i,metaKey:o,altKey:a}=e,s={target:"wheel",pointerId:(null==(t=this.pointer)?void 0:t.pointerId)||0,origin:(null==(n=this.pointer)?void 0:n.origin)||[0,0],delta:[0,0],pressure:.5,point:tE.getPoint(e,this.bounds),shiftKey:r,ctrlKey:i,metaKey:o,altKey:a,spaceKey:this.keys[" "]};return this.pointer=s,s}),eB(this,"pan",(e,t)=>{if(!this.pointer||"wheel"!==this.pointer.target)return this.panStart(t);let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=t,a=this.pointer,s=tE.getPoint(t,this.bounds),u=eI(eN({},a),{target:"wheel",delta:e,point:s,shiftKey:n,ctrlKey:r,metaKey:i,altKey:o,spaceKey:this.keys[" "]});return this.pointer=u,u}),eB(this,"keydown",e=>{var t,n;let{shiftKey:r,ctrlKey:i,metaKey:o,altKey:a}=e;return this.keys[e.key]=!0,{point:(null==(t=this.pointer)?void 0:t.point)||[0,0],origin:(null==(n=this.pointer)?void 0:n.origin)||[0,0],key:e.key,keys:Object.keys(this.keys),shiftKey:r,ctrlKey:i,metaKey:eY.isDarwin()?o:i,altKey:a}}),eB(this,"keyup",e=>{var t,n;let{shiftKey:r,ctrlKey:i,metaKey:o,altKey:a}=e;return delete this.keys[e.key],{point:(null==(t=this.pointer)?void 0:t.point)||[0,0],origin:(null==(n=this.pointer)?void 0:n.origin)||[0,0],key:e.key,keys:Object.keys(this.keys),shiftKey:r,ctrlKey:i,metaKey:eY.isDarwin()?o:i,altKey:a}})}pointerIsValid(e){if("pointerId"in e&&this.activePointer&&this.activePointer!==e.pointerId)return!1;if("touches"in e){let t=e.changedTouches[0];if(this.activePointer&&this.activePointer!==t.identifier)return!1}return!0}touchStart(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=e.changedTouches[0];this.activePointer=a.identifier;let s={target:t,pointerId:a.identifier,origin:tE.getPoint(a,this.bounds),delta:[0,0],point:tE.getPoint(a,this.bounds),pressure:tE.getPressure(a),shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}touchEnd(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=e.changedTouches[0],s={target:t,pointerId:a.identifier,origin:tE.getPoint(a,this.bounds),delta:[0,0],point:tE.getPoint(a,this.bounds),pressure:tE.getPressure(a),shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,this.activePointer=void 0,s}touchMove(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=e.changedTouches[0],s=this.pointer,l=tE.getPoint(a,this.bounds),c=(null==s?void 0:s.point)?u.B.sub(l,s.point):[0,0],d=eI(eN({origin:l},s),{target:t,pointerId:a.identifier,point:l,delta:c,pressure:tE.getPressure(a),shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]});return this.pointer=d,d}pointerDown(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=tE.getPoint(e,this.bounds);this.activePointer=e.pointerId;let s={target:t,pointerId:e.pointerId,origin:a,point:a,delta:[0,0],pressure:tE.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}pointerEnter(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=tE.getPoint(e,this.bounds),s={target:t,pointerId:e.pointerId,origin:a,delta:[0,0],point:a,pressure:tE.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}pointerMove(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=this.pointer,s=tE.getPoint(e,this.bounds),l=(null==a?void 0:a.point)?u.B.sub(s,a.point):[0,0],c=eI(eN({origin:s},a),{target:t,pointerId:e.pointerId,point:s,delta:l,pressure:tE.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]});return this.pointer=c,c}pointerUp(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=e,a=this.pointer,s=tE.getPoint(e,this.bounds),l=(null==a?void 0:a.point)?u.B.sub(s,a.point):[0,0];this.activePointer=void 0;let c=eI(eN({origin:s},a),{target:t,pointerId:e.pointerId,point:s,delta:l,pressure:tE.getPressure(e),shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]});return this.pointer=c,this.pointerUpTime=performance.now(),c}isDoubleClick(){if(!this.pointer)return!1;let{origin:e,point:t}=this.pointer,n=performance.now()-this.pointerUpTime<250&&4>u.B.dist(e,t);return n&&(this.activePointer=void 0),n}clear(){this.pointer=void 0}resetDoubleClick(){this.pointerUpTime=0}pinch(e,t){let{shiftKey:n,ctrlKey:r,metaKey:i,altKey:o}=this.keys,a=u.B.sub(t,e),s={pointerId:0,target:"pinch",origin:t,delta:a,point:u.B.sub(u.B.toFixed(e),[this.bounds.minX,this.bounds.minY]),pressure:.5,shiftKey:n,ctrlKey:r,metaKey:eY.isDarwin()?i:r,altKey:o,spaceKey:this.keys[" "]};return this.pointer=s,s}reset(){this.pointerUpTime=0,this.pointer=void 0,this.keyboard=void 0,this.activePointer=void 0,this.keys={}}static getPoint(e,t){return[+e.clientX.toFixed(2)-t.minX,+e.clientY.toFixed(2)-t.minY]}static getPressure(e){return"pressure"in e&&+e.pressure.toFixed(2)||.5}static commandKey(){return eY.isDarwin()?"⌘":"Ctrl"}};new tE;var tD={},tC=s.memo(function(e){var t,n,{id:r="tl",shapeUtils:i,page:o,pageState:a,assets:u=tD,users:l,userId:c,theme:d,meta:h,snapLines:p,eraseLine:f,grid:m,containerRef:g,performanceMode:v,hideHandles:y=!1,hideIndicators:b=!1,hideCloneHandles:w=!1,hideBindingHandles:k=!1,hideResizeHandles:x=!1,hideRotateHandles:_=!1,hideBounds:S=!1,hideGrid:E=!0,showDashedBrush:D=!1}=e,C=eL(e,["id","shapeUtils","page","pageState","assets","users","userId","theme","meta","snapLines","eraseLine","grid","containerRef","performanceMode","hideHandles","hideIndicators","hideCloneHandles","hideBindingHandles","hideResizeHandles","hideRotateHandles","hideBounds","hideGrid","showDashedBrush"]);t="#"+r,function(e,t,n=":root"){s.useLayoutEffect(()=>{let e=document.createElement("style"),r=Object.keys(t).reduce((e,n)=>{let r=t[n];return r?e+`--tl-${n}: ${r}; `:e},"");return e.setAttribute("id","tl-theme"),e.setAttribute("data-selector",n),e.innerHTML=` ${n} { ${r} } `,document.head.appendChild(e),()=>{e&&document.head.contains(e)&&document.head.removeChild(e)}},["tl",t,n])}("tl",s.useMemo(()=>eN(eN({},eK),d),[d]),t),n="tl-canvas",s.useLayoutEffect(()=>{if(eZ.get(n))return()=>{};let e=document.createElement("style");return e.innerHTML=eJ,e.setAttribute("id",n),document.head.appendChild(e),eZ.set(n,e),()=>{e&&document.head.contains(e)&&(document.head.removeChild(e),eZ.delete(n))}},[n,eJ]);let j=s.useRef(null),O=s.useRef(a);s.useEffect(()=>{O.current=a},[a]);let[T,A]=s.useState(()=>({callbacks:C,shapeUtils:i,rSelectionBounds:j,rPageState:O,bounds:{minX:0,minY:0,maxX:1/0,maxY:1/0,width:1/0,height:1/0},inputs:new tE})),P=s.useCallback(e=>{A(t=>eI(eN({},t),{bounds:e}))},[]);return s.createElement(ez.Provider,{value:T},s.createElement(tS,{id:r,page:o,pageState:a,assets:u,snapLines:p,eraseLine:f,grid:m,users:l,userId:c,externalContainerRef:g,hideBounds:S,hideIndicators:b,hideHandles:y,hideCloneHandles:w,hideBindingHandles:k,hideRotateHandle:_,hideResizeHandles:x,hideGrid:E,showDashedBrush:D,onBoundsChange:P,performanceMode:v,meta:h}))}),tj=s.memo(s.forwardRef(function(e,t){var{children:n,className:r=""}=e,i=eL(e,["children","className"]);return s.createElement("div",eN({ref:t,className:`tl-positioned-div ${r}`,draggable:!1},i),s.createElement("div",{className:"tl-inner-div"},n))})),tO=class{constructor(){eB(this,"refMap",new Map),eB(this,"boundsCache",new WeakMap),eB(this,"showCloneHandles",!1),eB(this,"hideBounds",!1),eB(this,"isStateful",!1),eB(this,"shouldRender",(e,t)=>!0),eB(this,"getRef",e=>(this.refMap.has(e.id)||this.refMap.set(e.id,s.createRef()),this.refMap.get(e.id))),eB(this,"hitTestBounds",(e,t)=>{let n=this.getBounds(e),r=eY.getRotatedCorners(n,e.rotation);return r.every(e=>eY.pointInBounds(e,t))||(0,ej.S3)(r,t).length>0}),eB(this,"getRotatedBounds",e=>eY.getBoundsFromPoints(eY.getRotatedCorners(this.getBounds(e),e.rotation)))}};eB(tO,"Component",e=>s.forwardRef(e)),eB(tO,"Indicator",e=>e)},17947:function(e,t,n){"use strict";n.d(t,{Bc:function(){return E},Gc:function(){return _},Rt:function(){return j},S3:function(){return P},Sn:function(){return O},T9:function(){return b},VB:function(){return m},VC:function(){return D},WU:function(){return x},Zz:function(){return v},bO:function(){return C},bW:function(){return y},oA:function(){return g},ou:function(){return A},qx:function(){return k},zb:function(){return T}});var r=n(51987),i=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))u.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))l.call(t,n)&&c(e,n,t[n]);return e},h=(e,t)=>o(e,a(t));function p(e,...t){return{didIntersect:t.length>0,message:e,points:t}}function f(e,t,n=0){let i=[e[0]+t[0]/2,e[1]+t[1]/2],o=r.B.rotWith(e,i,n),a=r.B.rotWith(r.B.add(e,[t[0],0]),i,n),s=r.B.rotWith(r.B.add(e,t),i,n),u=r.B.rotWith(r.B.add(e,[0,t[1]]),i,n);return[["top",[o,a]],["right",[a,s]],["bottom",[s,u]],["left",[u,o]]]}function m(e,t){let n=r.B.slope(e[0],e[1]),i=r.B.slope(t[0],t[1]);if(n===i)return;if(Number.isNaN(n)&&!Number.isNaN(i))return[e[0][0],(e[0][0]-t[0][0])*i+t[0][1]];if(Number.isNaN(i)&&!Number.isNaN(n))return[t[0][0],(t[0][0]-e[0][0])*n+e[0][1]];let o=(n*e[0][0]-i*t[0][0]+t[0][1]-e[0][1])/(n-i),a=i*(o-t[0][0])+t[0][1];return[o,a]}function g(e,t,n,r){let[i,o]=e,[a,s]=t,[u,l]=n,[c,d]=r;if(s/a!=(d-l)/(c-u)){let e=a*(d-l)-s*(c-u);if(0!==e){let t=((o-l)*(c-u)-(i-u)*(d-l))/e,n=((o-l)*a-(i-u)*s)/e;if(t>=0&&n>=0&&n<=1)return p("intersection",[i+t*a,o+t*s])}}return p("no intersection")}function v(e,t,n,i,o,a){return k(e,r.B.mul(t,999999999),n,i,o,a)}function y(e,t,n,r=0){let{minX:i,minY:o,width:a,height:s}=n;return function(e,t,n,r,i=0){return f(n,r,i).reduce((n,[r,[i,o]])=>{let a=g(e,t,i,o);return a&&n.push(p(r,...a.points)),n},[]).filter(e=>e.didIntersect)}(e,t,[i,o],[a,s],r)}function b(e,t,n,i){let o=r.B.sub(e,n),a=r.B.sub(i,n),s=r.B.sub(t,e),u=a[0]*o[1]-a[1]*o[0],l=s[0]*o[1]-s[1]*o[0],c=a[1]*s[0]-a[0]*s[1];if(0===u||0===l)return p("coincident");if(0===c)return p("parallel");if(0!==c){let t=u/c,n=l/c;if(0<=t&&t<=1&&0<=n&&n<=1)return p("intersection",r.B.add(e,r.B.mul(s,t)))}return p("no intersection")}function w(e,t,n,i){let o=(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]),a=2*((t[0]-e[0])*(e[0]-n[0])+(t[1]-e[1])*(e[1]-n[1])),s=a*a-4*o*(n[0]*n[0]+n[1]*n[1]+e[0]*e[0]+e[1]*e[1]-2*(n[0]*e[0]+n[1]*e[1])-i*i);if(s<0)return p("outside");if(0===s)return p("tangent");let u=Math.sqrt(s),l=(-a+u)/(2*o),c=(-a-u)/(2*o);if((l<0||l>1)&&(c<0||c>1))return l<0&&c<0||l>1&&c>1?p("outside"):p("inside");let d=[];return 0<=l&&l<=1&&d.push(r.B.lrp(e,t,l)),0<=c&&c<=1&&d.push(r.B.lrp(e,t,c)),p("intersection",...d)}function k(e,t,n,i,o,a=0){if(0===i||0===o||r.B.isEqual(e,t))return p("no intersection");i=i<0?i:-i,o=o<0?o:-o,e=r.B.sub(r.B.rotWith(e,n,-a),n),t=r.B.sub(r.B.rotWith(t,n,-a),n);let s=r.B.sub(t,e),u=s[0]*s[0]/i/i+s[1]*s[1]/o/o,l=2*e[0]*s[0]/i/i+2*e[1]*s[1]/o/o,c=e[0]*e[0]/i/i+e[1]*e[1]/o/o-1,d=[],h=l*l-4*u*c;if(0===h)d.push(-l/2/u);else if(h>0){let e=Math.sqrt(h);d.push((-l+e)/2/u),d.push((-l-e)/2/u)}return p("intersection",...d.filter(e=>e>=0&&e<=1).map(i=>r.B.add(n,r.B.add(e,r.B.mul(r.B.sub(t,e),i)))).map(e=>r.B.rotWith(e,n,a)))}function x(e,t,n){return function(e,t,n){let{minX:r,minY:i,width:o,height:a}=e;return S([r,i],[o,a],t,n)}(n,e,t)}function _(e,t,n){let r=[];for(let i=1;i{let a=b(n,r,i,o);return a&&e.push(p(t,...a.points)),e},[]).filter(e=>e.didIntersect)}function E(e,t,n,i,o){let{minX:a,minY:s,width:u,height:l}=o;return f([a,s],[u,l]).reduce((o,[a,[s,u]])=>{let l=function(e,t,n,i,o,a){let s=r.B.angle(n,o),u=r.B.angle(n,a),l=function(e,t,n,r=0,i,o){return t===n?w(i,o,e,t):k(i,o,e,t,n,r)}(n,i,i,0,e,t);if(!l.didIntersect)return p("no intersection");let c=l.points.filter(e=>(function(e,t,n){if(n===e||n===t)return!0;let r=2*Math.PI,i=(t-e+r)%r;return i<=Math.PI!=(n-e+r)%r>i})(s,u,r.B.angle(n,e)));return 0===c.length?p("no intersection"):p("intersection",...c)}(s,u,e,t,n,i);return l&&o.push(h(d({},l),{message:a})),o},[]).filter(e=>e.didIntersect)}function D(e,t,n,r){return w(n,r,e,t)}function C(e,t,n,r){let i=n[0]-e[0],o=n[1]-e[1],a=Math.sqrt(i*i+o*o),s=(a*a-r*r+t*t)/(2*a),u=Math.sqrt(t*t-s*s);return i/=a,o/=a,p("intersection",[e[0]+i*s-o*u,e[1]+o*s+i*u],[e[0]+i*s+o*u,e[1]+o*s-i*u])}function j(e,t,n,r,i){let{minX:o,minY:a,width:s,height:u}=i;return function(e,t,n,r=0,i,o){return t===n?f(i,o).reduce((n,[r,[i,o]])=>{let a=w(i,o,e,t);return a&&n.push(h(d({},a),{message:r})),n},[]).filter(e=>e.didIntersect):function(e,t,n,r,i,o=0){return f(e,t).reduce((e,[t,[a,s]])=>{let u=k(a,s,n,r,i,o);return u&&e.push(h(d({},u),{message:t})),e},[]).filter(e=>e.didIntersect)}(i,o,e,t,n,r)}(e,t,n,r,[o,a],[s,u])}function O(e,t){var n,r,i,o;return n=[e.minX,e.minY],r=[e.width,e.height],i=[t.minX,t.minY],o=[t.width,t.height],f(n,r).reduce((e,[t,[n,r]])=>{let a=S(i,o,n,r);return e.push(...a.map(e=>p(`${t} ${e.message}`,...e.points))),e},[]).filter(e=>e.didIntersect)}function T(e,t){var n,r;return n=t,f([(r=e).minX,r.minY],[r.width,r.height]).reduce((e,[t,[r,i]])=>{let o=_(r,i,n);return o.didIntersect&&e.push(p(t,...o.points)),e},[]).filter(e=>e.didIntersect)}function A(e,t){return P(t,e)}function P(e,t){return f([t.minX,t.minY],[t.width,t.height]).reduce((t,[n,[r,i]])=>{let o=function(e,t,n){let r=[];for(let i=1;ie.didIntersect)}},51987:function(e,t,n){"use strict";n.d(t,{B:function(){return s},Z:function(){return u}});var r=Object.defineProperty,i=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n),a=class{static clamp(e,t,n){return Math.max(t,void 0!==n?Math.min(e,n):e)}static clampV(e,t,n){return e.map(e=>n?a.clamp(e,t,n):a.clamp(e,t))}static cross(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(n[0]-e[0])*(t[1]-e[1])}static snap(e,t=1){return[Math.round(e[0]/t)*t,Math.round(e[1]/t)*t]}},s=a;o(s,"neg",e=>[-e[0],-e[1]]),o(s,"add",(e,t)=>[e[0]+t[0],e[1]+t[1]]),o(s,"addScalar",(e,t)=>[e[0]+t,e[1]+t]),o(s,"sub",(e,t)=>[e[0]-t[0],e[1]-t[1]]),o(s,"subScalar",(e,t)=>[e[0]-t,e[1]-t]),o(s,"vec",(e,t)=>[t[0]-e[0],t[1]-e[1]]),o(s,"mul",(e,t)=>[e[0]*t,e[1]*t]),o(s,"mulV",(e,t)=>[e[0]*t[0],e[1]*t[1]]),o(s,"div",(e,t)=>[e[0]/t,e[1]/t]),o(s,"divV",(e,t)=>[e[0]/t[0],e[1]/t[1]]),o(s,"per",e=>[e[1],-e[0]]),o(s,"dpr",(e,t)=>e[0]*t[0]+e[1]*t[1]),o(s,"cpr",(e,t)=>e[0]*t[1]-t[0]*e[1]),o(s,"len2",e=>e[0]*e[0]+e[1]*e[1]),o(s,"len",e=>Math.hypot(e[0],e[1])),o(s,"pry",(e,t)=>a.dpr(e,t)/a.len(t)),o(s,"uni",e=>a.div(e,a.len(e))),o(s,"normalize",e=>a.uni(e)),o(s,"tangent",(e,t)=>a.uni(a.sub(e,t))),o(s,"dist2",(e,t)=>a.len2(a.sub(e,t))),o(s,"dist",(e,t)=>Math.hypot(e[1]-t[1],e[0]-t[0])),o(s,"fastDist",(e,t)=>{let n=[t[0]-e[0],t[1]-e[1]],r=[Math.abs(n[0]),Math.abs(n[1])],i=1/Math.max(r[0],r[1]);return[n[0]*(i*=1.29289-(r[0]+r[1])*i*.29289),n[1]*i]}),o(s,"ang",(e,t)=>Math.atan2(a.cpr(e,t),a.dpr(e,t))),o(s,"angle",(e,t)=>Math.atan2(t[1]-e[1],t[0]-e[0])),o(s,"med",(e,t)=>a.mul(a.add(e,t),.5)),o(s,"rot",(e,t=0)=>[e[0]*Math.cos(t)-e[1]*Math.sin(t),e[0]*Math.sin(t)+e[1]*Math.cos(t)]),o(s,"rotWith",(e,t,n=0)=>{if(0===n)return e;let r=Math.sin(n),i=Math.cos(n),o=e[0]-t[0],a=e[1]-t[1];return[o*i-a*r+t[0],o*r+a*i+t[1]]}),o(s,"isEqual",(e,t)=>e[0]===t[0]&&e[1]===t[1]),o(s,"lrp",(e,t,n)=>a.add(e,a.mul(a.sub(t,e),n))),o(s,"int",(e,t,n,r,i=1)=>{let o=(a.clamp(n,r)-n)/(r-n);return a.add(a.mul(e,1-o),a.mul(t,i))}),o(s,"ang3",(e,t,n)=>{let r=a.vec(t,e),i=a.vec(t,n);return a.ang(r,i)}),o(s,"abs",e=>[Math.abs(e[0]),Math.abs(e[1])]),o(s,"rescale",(e,t)=>{let n=a.len(e);return[t*e[0]/n,t*e[1]/n]}),o(s,"isLeft",(e,t,n)=>(t[0]-e[0])*(n[1]-e[1])-(n[0]-e[0])*(t[1]-e[1])),o(s,"clockwise",(e,t,n)=>a.isLeft(e,t,n)>0),o(s,"toFixed",e=>e.map(e=>Math.round(100*e)/100)),o(s,"nearestPointOnLineThroughPoint",(e,t,n)=>a.add(e,a.mul(t,a.pry(a.sub(n,e),t)))),o(s,"distanceToLineThroughPoint",(e,t,n)=>a.dist(n,a.nearestPointOnLineThroughPoint(e,t,n))),o(s,"nearestPointOnLineSegment",(e,t,n,r=!0)=>{let i=a.uni(a.sub(t,e)),o=a.add(e,a.mul(i,a.pry(a.sub(n,e),i)));if(r){if(o[0]Math.max(e[0],t[0]))return e[0]>t[0]?e:t;if(o[1]Math.max(e[1],t[1]))return e[1]>t[1]?e:t}return o}),o(s,"distanceToLineSegment",(e,t,n,r=!0)=>a.dist(n,a.nearestPointOnLineSegment(e,t,n,r))),o(s,"nearestPointOnBounds",(e,t)=>[a.clamp(t[0],e.minX,e.maxX),a.clamp(t[1],e.minY,e.maxY)]),o(s,"distanceToBounds",(e,t)=>a.dist(t,a.nearestPointOnBounds(e,t))),o(s,"nudge",(e,t,n)=>a.isEqual(e,t)?e:a.add(e,a.mul(a.uni(a.sub(t,e)),n))),o(s,"nudgeAtAngle",(e,t,n)=>[Math.cos(t)*n+e[0],Math.sin(t)*n+e[1]]),o(s,"toPrecision",(e,t=4)=>[+e[0].toPrecision(t),+e[1].toPrecision(t)]),o(s,"pointsBetween",(e,t,n=6)=>Array.from(Array(n)).map((r,i)=>{let o=i/(n-1),s=Math.min(1,.5+Math.abs(.5-o));return[...a.lrp(e,t,o),s]})),o(s,"slope",(e,t)=>e[0]===t[0]?NaN:(e[1]-t[1])/(e[0]-t[0])),o(s,"max",(...e)=>[Math.max(...e.map(e=>e[0])),Math.max(...e.map(e=>e[1]))]),o(s,"min",(...e)=>[Math.min(...e.map(e=>e[0])),Math.min(...e.map(e=>e[1]))]);var u=s},5617:function(e,t,n){"use strict";let r,i,o;n.d(t,{zt:function(){return E},C$:function(){return y},sk:function(){return F}});var a={};n.r(a),n.d(a,{getItem:function(){return x},removeItem:function(){return _},setItem:function(){return k}});var s=n(47491),u=n(75386);class l extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}function c(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var d=0;function h(e){return"__private_"+d+++"_"+e}async function p(e){if(401===e.status)throw new l;let t=e.json();if(e.ok)return t;let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}catch{}throw Error(n)}let f=new Map;var m=h("companionHeaders"),g=h("getUrl"),v=h("request");r=Symbol.for("uppy test: getCompanionHeaders");class y{constructor(e,t){Object.defineProperty(this,v,{value:w}),Object.defineProperty(this,g,{value:b}),Object.defineProperty(this,m,{writable:!0,value:void 0}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),c(this,m)[m]=null==t?void 0:t.companionHeaders}setCompanionHeaders(e){c(this,m)[m]=e}[r](){return c(this,m)[m]}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}async headers(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${y.VERSION}`,...c(this,m)[m]}}onReceiveResponse(e){let{headers:t}=e,n=this.uppy.getState().companion||{},r=this.opts.companionUrl;t.has("i-am")&&t.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:t.get("i-am")}})}async preflight(e){let t=f.get(this.hostname);if(null!=t)return t;let n=["accept","content-type","uppy-auth-token"],r=(async()=>{try{let t=(await fetch(c(this,g)[g](e),{method:"OPTIONS"})).headers.get("access-control-allow-headers");if(null==t||"*"===t)return f.set(this.hostname,n),n;this.uppy.log(`[CompanionClient] adding allowed preflight headers to companion cache: ${this.hostname} ${t}`);let r=t.split(",").map(e=>e.trim().toLowerCase());return f.set(this.hostname,r),r}catch(e){return this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),f.delete(this.hostname),n}})();return f.set(this.hostname,r),r}async preflightAndHeaders(e){let[t,n]=await Promise.all([this.preflight(e),this.headers()]);return Object.fromEntries(Object.entries(n).filter(e=>{let[n]=e;return!!t.includes(n.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${n}`),!1)}))}async get(e,t){return void 0===t&&(t=void 0),"boolean"==typeof t&&(t={skipPostResponse:t}),c(this,v)[v]({...t,path:e})}async post(e,t,n){return void 0===n&&(n=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,v)[v]({...n,path:e,method:"POST",data:t})}async delete(e,t,n){return void 0===t&&(t=void 0),"boolean"==typeof n&&(n={skipPostResponse:n}),c(this,v)[v]({...n,path:e,method:"DELETE",data:t})}}function b(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}async function w(e){let{path:t,method:n="GET",data:r,skipPostResponse:i,signal:o}=e;try{let e=await this.preflightAndHeaders(t),a=await (0,s.Z)(c(this,g)[g](t),{method:n,signal:o,headers:e,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null});return i||this.onReceiveResponse(a),p(a)}catch(e){if(null!=e&&e.isAuthError)throw e;throw new u.Z(`Could not ${n} ${c(this,g)[g](t)}`,{cause:e})}}function k(e,t){return new Promise(n=>{localStorage.setItem(e,t),n()})}function x(e){return Promise.resolve(localStorage.getItem(e))}function _(e){return new Promise(t=>{localStorage.removeItem(e),t()})}y.VERSION="3.1.1";let S=e=>e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");class E extends y{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||S(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}async headers(){let[e,t]=await Promise.all([super.headers(),this.getAuthToken()]),n={};return t&&(n["uppy-auth-token"]=t),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}}onReceiveResponse(e){super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}async ensurePreAuth(){if(this.companionKeysParams&&!this.preAuthToken&&(await this.fetchPreAuthToken(),!this.preAuthToken))throw Error("Could not load authentication data required for third-party login. Please try again later.")}authUrl(e){void 0===e&&(e={});let t=new URLSearchParams(e);return this.preAuthToken&&t.set("uppyPreAuthToken",this.preAuthToken),`${this.hostname}/${this.id}/connect?${t}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}async fetchPreAuthToken(){if(this.companionKeysParams)try{let e=await this.post(`${this.id}/preauth/`,{params:this.companionKeysParams});this.preAuthToken=e.token}catch(e){this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let n=t.companionAllowedHosts;if("string"!=typeof n&&!Array.isArray(n)&&!(n instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||a}}var D=n(5450);function C(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var j=0;function O(e){return"__private_"+j+++"_"+e}var T=O("queued"),A=O("emitter"),P=O("isOpen"),R=O("socket"),M=O("handleMessage");i=Symbol.for("uppy test: getSocket"),o=Symbol.for("uppy test: getQueued");class F{constructor(e){Object.defineProperty(this,T,{writable:!0,value:[]}),Object.defineProperty(this,A,{writable:!0,value:D()}),Object.defineProperty(this,P,{writable:!0,value:!1}),Object.defineProperty(this,R,{writable:!0,value:void 0}),Object.defineProperty(this,M,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return C(this,P)[P]}[i](){return C(this,R)[R]}[o](){return C(this,T)[T]}open(){C(this,R)[R]=new WebSocket(this.opts.target),C(this,R)[R].onopen=()=>{for(C(this,P)[P]=!0;C(this,T)[T].length>0&&C(this,P)[P];){let e=C(this,T)[T].shift();this.send(e.action,e.payload)}},C(this,R)[R].onclose=()=>{C(this,P)[P]=!1},C(this,R)[R].onmessage=C(this,M)[M]}close(){var e;null==(e=C(this,R)[R])||e.close()}send(e,t){if(!C(this,P)[P]){C(this,T)[T].push({action:e,payload:t});return}C(this,R)[R].send(JSON.stringify({action:e,payload:t}))}on(e,t){C(this,A)[A].on(e,t)}emit(e,t){C(this,A)[A].emit(e,t)}once(e,t){C(this,A)[A].once(e,t)}}},60587:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(6744);class i{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){let{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){let{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){let e=new r.Z([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}}},65616:function(e,t,n){"use strict";let r,i;n.d(t,{di:function(){return ey},hS:function(){return el},ZP:function(){return el}});var o=n(6744),a=n(5450);let s=(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t};var u=n(98357);function l(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var c=0;function d(e){return"__private_"+c+++"_"+e}var h=d("callbacks"),p=d("publish");class f{constructor(){Object.defineProperty(this,p,{value:m}),Object.defineProperty(this,h,{writable:!0,value:new Set}),this.state={}}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,l(this,p)[p](t,n,e)}subscribe(e){return l(this,h)[h].add(e),()=>{l(this,h)[h].delete(e)}}}function m(){for(var e=arguments.length,t=Array(e),n=0;n{e(...t)})}function g(e){let t=e.lastIndexOf(".");return -1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}}f.VERSION="3.0.2";var v=n(13326);function y(e){let t="";return e.replace(/[^A-Z0-9]/ig,e=>(t+=`-${e.charCodeAt(0).toString(32)}`,"/"))+t}function b(e){return e<10?`0${e}`:e.toString()}function w(){let e=new Date,t=b(e.getHours()),n=b(e.getMinutes()),r=b(e.getSeconds());return`${t}:${n}:${r}`}let k={debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),n=0;n{let t=e();if(null!=t.restrictions.allowedFileTypes&&!Array.isArray(t.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");return t}}validate(e,t){let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:o,allowedFileTypes:a}=this.getOpts().restrictions;if(o&&t.filter(e=>!e.isGhost).length+1>o)throw new D(`${this.i18n("youCanOnlyUploadX",{smart_count:o})}`);if(a&&!a.some(t=>t.includes("/")?!!e.type&&S(e.type.replace(/;.*?$/,""),t):"."===t[0]&&!!e.extension&&e.extension.toLowerCase()===t.slice(1).toLowerCase())){let e=a.join(", ");throw new D(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(i&&null!=e.size&&t.reduce((e,t)=>e+t.size,e.size)>i)throw new D(this.i18n("exceedsSize",{size:_(i),file:e.name}));if(n&&null!=e.size&&e.size>n)throw new D(this.i18n("exceedsSize",{size:_(n),file:e.name}));if(r&&null!=e.size&&e.sizee,onBeforeUpload:e=>e,store:new f,logger:k,infoTimeout:5e3};this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=x),this.log(`Using Core v${this.constructor.VERSION}`),this.i18nInit(),this.calculateProgress=u(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:function(e){if(null==e&&"undefined"!=typeof navigator&&(e=navigator.userAgent),!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[n,r]=t[1].split(".");return n=parseInt(n,10),r=parseInt(r,10),n<15||15===n&&r<15063||n>18||18===n&&r>=18218}(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),O(this,R)[R]=new C(()=>this.opts,this.i18n),O(this,M)[M]=this.store.subscribe((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)}),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),O(this,W)[W]()}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{t.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new o.Z([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(e=>{e.setOptions()}),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach(r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){O(this,N)[N].add(e)}removePreProcessor(e){return O(this,N)[N].delete(e)}addPostProcessor(e){O(this,L)[L].add(e)}removePostProcessor(e){return O(this,L)[L].delete(e)}addUploader(e){O(this,I)[I].add(e)}removeUploader(e){return O(this,I)[I].delete(e)}setMeta(e){let t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){let n={...this.getState().files};if(!n[e]){this.log("Was trying to set metadata for a file that has been removed: ",e);return}let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter(e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted}),o=r.filter(e=>!e.progress.uploadStarted),a=r.filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess),s=r.filter(e=>e.progress.uploadStarted),u=r.filter(e=>e.isPaused),l=r.filter(e=>e.progress.uploadComplete),c=r.filter(e=>e.error),d=i.filter(e=>!e.isPaused),h=r.filter(e=>e.progress.preprocess||e.progress.postprocess);return{newFiles:o,startedFiles:a,uploadStartedFiles:s,pausedFiles:u,completeFiles:l,erroredFiles:c,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:h,isUploadStarted:s.length>0,isAllComplete:100===t&&l.length===r.length&&0===h.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==i.length&&u.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some(e=>e.isGhost)}}validateRestrictions(e,t){void 0===t&&(t=this.getFiles());try{O(this,R)[R].validate(e,t)}catch(e){return e}return null}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!!t[e]&&!t[e].isGhost}addFile(e){O(this,q)[q](e);let{files:t}=this.getState(),n=O(this,$)[$](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),O(this,H)[H](),n.id}addFiles(e){O(this,q)[q]();let t={...this.getState().files},n=[],r=[];for(let i=0;i{this.emit("file-added",e)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(e=>{this.log(`Added file: ${n[e].name} id: ${n[e].id} type: ${n[e].type}`)}),n.length>0&&O(this,H)[H](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach(t=>{e+=` * ${t.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},o={...r},a=Object.create(null);function s(e){return void 0===a[e]}e.forEach(e=>{n[e]&&(a[e]=n[e],delete i[e])}),Object.keys(o).forEach(e=>{let t=r[e].fileIDs.filter(s);if(0===t.length){delete o[e];return}let{capabilities:n}=this.getState();if(t.length!==r[e].fileIDs.length&&!n.individualCancellation)throw Error("individualCancellation is disabled");o[e]={...r[e],fileIDs:t}});let u={currentUploads:o,files:i};0===Object.keys(i).length&&(u.allowNewUpload=!0,u.error=null,u.recoveredState=null),this.setState(u),this.calculateTotalProgress();let l=Object.keys(a);l.forEach(e=>{this.emit("file-removed",a[e],t)}),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let n={...e[t],isPaused:!0};e[t]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){let e={...this.getState().files};Object.keys(e).filter(t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted).forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter(t=>e[t].error);if(t.forEach(t=>{let n={...e[t],isPaused:!1,error:null};e[t]=n}),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});let n=O(this,G)[G](t,{forceAllowNewUpload:!0});return O(this,K)[K](n)}cancelAll(e){let{reason:t="user"}=void 0===e?{}:e;if(this.emit("cancel-all",{reason:t}),"user"===t){let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);let t=O(this,G)[G]([e],{forceAllowNewUpload:!0});return O(this,K)[K](t)}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,t){if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles().filter(e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess);if(0===e.length){this.emit("progress",0),this.setState({totalProgress:0});return}let t=e.filter(e=>null!=e.progress.bytesTotal),n=e.filter(e=>null==e.progress.bytesTotal);if(0===t.length){let t=100*e.length,r=Math.round(n.reduce((e,t)=>e+t.progress.percentage,0)/t*100);this.setState({totalProgress:r});return}let r=t.reduce((e,t)=>e+t.progress.bytesTotal,0),i=r/t.length;r+=i*n.length;let o=0;t.forEach(e=>{o+=e.progress.bytesUploaded}),n.forEach(e=>{o+=i*(e.progress.percentage||0)/100});let a=0===r?0:Math.round(o/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);let n=new e(this,t),r=n.id;if(!r)throw Error("Your plugin must have an id");if(!n.type)throw Error("Your plugin must have a type");let i=this.getPlugin(r);if(i)throw Error(`Already found a plugin named '${i.id}'. Tried to use: '${r}'. Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`);return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in O(this,P)[P]?O(this,P)[P][n.type].push(n):O(this,P)[P][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(O(this,P)[P])){let n=t.find(t=>t.id===e);if(null!=n)return n}}[r](e){return O(this,P)[P][e]}iteratePlugins(e){Object.values(O(this,P)[P]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();let t=O(this,P)[P][e.type],n=t.findIndex(t=>t.id===e.id);-1!==n&&t.splice(n,1);let r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(e){let{reason:t}=void 0===e?{}:e;this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.cancelAll({reason:t}),O(this,M)[M](),this.iteratePlugins(e=>{this.removePlugin(e)}),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",O(this,V)[V]),window.removeEventListener("offline",O(this,V)[V]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);let r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,t){let{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return(this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e])?O(this,K)[K](e):(O(this,Z)[Z](e),Promise.reject(Error("Nonexistent upload")))}[i](){return O(this,G)[G](...arguments)}addResultData(e,t){if(!O(this,Y)[Y](e)){this.log(`Not setting result for an upload that has been removed: ${e}`);return}let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=O(this,P)[P].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then(()=>O(this,R)[R].validateMinNumberOfFiles(t)).catch(e=>{throw O(this,B)[B](e),e}).then(()=>{if(!O(this,U)[U](t))throw new D(this.i18n("missingRequiredMetaField"))}).catch(e=>{throw e}).then(()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap(e=>e.fileIDs),r=[];Object.keys(t).forEach(e=>{let t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)});let i=O(this,G)[G](r);return O(this,K)[K](i)}).catch(e=>{throw this.emit("error",e),this.log(e,"error"),e}))}}function X(e,t){let{message:n,details:r=""}=e;e.isRestriction?this.emit("restriction-failed",t,e):this.emit("error",e),this.info({message:n,details:r},"error",this.opts.infoTimeout),this.log(e,"warning")}function Q(e){let{missingFields:t,error:n}=O(this,R)[R].getMissingRequiredMetaFields(e);return!(t.length>0)||(this.setFileState(e.id,{missingRequiredMetaFields:t}),this.log(n.message),this.emit("restriction-failed",e,n),!1)}function ee(e){let t=!0;for(let n of Object.values(e))O(this,z)[z](n)||(t=!1);return t}function et(e){let{allowNewUpload:t}=this.getState();if(!1===t){let t=new D(this.i18n("noMoreFilesAllowed"));throw O(this,B)[B](t,e),t}}function en(e,t){var n,r;let i;t instanceof File&&(t={name:t.name,type:t.type,size:t.size,data:t});let o=function(e){var t;if(e.type)return e.type;let n=e.name?null==(t=g(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in v.Z?v.Z[n]:"application/octet-stream"}(t),a=(n=t).name?n.name:"image"===o.split("/")[0]?`${o.split("/")[0]}.${o.split("/")[1]}`:"noname",s=g(a).extension,u=!!t.isRemote,l=(r={...t,type:o},i="uppy","string"==typeof r.name&&(i+=`-${y(r.name.toLowerCase())}`),void 0!==r.type&&(i+=`-${r.type}`),r.meta&&"string"==typeof r.meta.relativePath&&(i+=`-${y(r.meta.relativePath.toLowerCase())}`),void 0!==r.data.size&&(i+=`-${r.data.size}`),void 0!==r.data.lastModified&&(i+=`-${r.data.lastModified}`),i);if(this.checkIfFileAlreadyExists(l)){let e=new D(this.i18n("noDuplicates",{fileName:a}));throw O(this,B)[B](e,t),e}let c=t.meta||{};c.name=a,c.type=o;let d=Number.isFinite(t.data.size)?t.data.size:null,h={source:t.source||"",id:l,name:a,extension:s||"",meta:{...this.getState().meta,...c},type:o,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:d,uploadComplete:!1,uploadStarted:null},size:d,isRemote:u,remote:t.remote||"",preview:t.preview},p=this.opts.onBeforeFileAdded(h,e);if(!1===p){let e=new D("Cannot add the file because onBeforeFileAdded returned false.");throw this.emit("restriction-failed",t,e),e}"object"==typeof p&&null!==p&&(h=p);try{let t=Object.keys(e).map(t=>e[t]);O(this,R)[R].validate(h,t)}catch(e){throw O(this,B)[B](e,h),e}return h}function er(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function ei(){let e;let t=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),"object"==typeof n&&n.message){let t=Error(n.message);t.details=n.message,n.details&&(t.details+=` ${n.details}`),t.message=this.i18n("failedToUpload",{file:null==e?void 0:e.name}),O(this,B)[B](t)}else O(this,B)[B](n)}),this.on("upload-stalled",(t,n)=>{let{message:r}=t,i=n.map(e=>e.meta.name).join(", ");e||(this.info({message:r,details:i},"warning",this.opts.infoTimeout),e=setTimeout(()=>{e=null},this.opts.infoTimeout)),this.log(`${r} ${i}`.trim(),"warning")}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}})}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:O(this,L)[L].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}})}),this.on("preprocess-complete",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})}),this.on("postprocess-progress",(e,t)=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}})}),this.on("postprocess-complete",e=>{if(null==e||!this.getFile(e.id)){this.log(`Not setting progress for a file that has been removed: ${null==e?void 0:e.id}`);return}let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&O(this,z)[z](e)}),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",O(this,V)[V]),window.addEventListener("offline",O(this,V)[V]),setTimeout(O(this,V)[V],3e3))}function eo(e,t){void 0===t&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error("Cannot create a new upload: already uploading.");let o=s();return this.emit("upload",{id:o,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[o]:{fileIDs:e,step:0,result:{}}}}),o}function ea(e){let{currentUploads:t}=this.getState();return t[e]}function es(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function eu(e){let t,{currentUploads:n}=this.getState(),r=n[e],i=r.step||0,o=[...O(this,N)[N],...O(this,I)[I],...O(this,L)[L]];try{for(let t=i;t{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)});let t=r.fileIDs.map(e=>this.getFile(e)),i=t.filter(e=>!e.error),o=t.filter(e=>e.error);await this.addResultData(e,{successful:i,failed:o,uploadID:e}),r=(n=this.getState().currentUploads)[e]}return r&&(t=r.result,this.emit("complete",t),O(this,Z)[Z](e)),null==t&&this.log(`Not setting result for an upload that has been removed: ${e}`),t}J.VERSION="3.0.6";var el=J,ec=n(33847),ed=n(95444),eh=n(87843),ep=n(60587);function ef(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var em=0,eg="__private_"+em+++"_updateUI";class ev extends ep.Z{constructor(){super(...arguments),Object.defineProperty(this,eg,{writable:!0,value:void 0})}getTargetPlugin(e){let t;return"object"==typeof e&&e instanceof ev?t=e:"function"==typeof e&&this.uppy.iteratePlugins(n=>{n instanceof e&&(t=n)}),t}mount(e,t){var n,r;let i=t.id,o=(void 0===n&&(n=document),"string"==typeof e)?n.querySelector(e):(0,ed.Z)(e)?e:null;if(o){let t,n;this.isTargetDOMEl=!0;let a=document.createElement("div");return a.classList.add("uppy-Root"),ef(this,eg)[eg]=(r=e=>{this.uppy.getPlugin(this.id)&&((0,ec.sY)(this.render(e),a),this.afterUpdate())},t=null,n=null,function(){for(var e=arguments.length,i=Array(e),o=0;o(t=null,r(...n)))),t}),this.uppy.log(`Installing ${i} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),(0,ec.sY)(this.render(this.uppy.getState()),a),this.el=a,o.appendChild(a),a.dir=this.opts.direction||(0,eh.Z)(a)||"ltr",this.onMount(),this.el}let a=this.getTargetPlugin(e);if(a)return this.uppy.log(`Installing ${i} to ${a.id}`),this.parent=a,this.el=a.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${i}`);let s=`Invalid target option given to ${i}.`;throw"function"==typeof e?s+=" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":s+="If you meant to target an HTML element, please make sure that the element exists. Check that the